]> git.mxchange.org Git - hub.git/commitdiff
Continued (WIP):
authorRoland Häder <roland@mxchange.org>
Sat, 25 Feb 2023 09:57:23 +0000 (10:57 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 25 Feb 2023 09:57:23 +0000 (10:57 +0100)
- moved more from GenericRegistry to ObjectRegistry
- including registry segmentation by parameter $key
- updated 'core' framework

102 files changed:
application/hub/classes/commands/console/class_HubConsoleAptProxyCommand.php
application/hub/classes/commands/console/class_HubConsoleChatCommand.php
application/hub/classes/commands/console/class_HubConsoleCrawlerCommand.php
application/hub/classes/commands/console/class_HubConsoleCruncherCommand.php
application/hub/classes/commands/console/class_HubConsoleDaemonCommand.php
application/hub/classes/commands/console/class_HubConsoleMinerCommand.php
application/hub/classes/crawler/class_BaseNodeCrawler.php
application/hub/classes/crawler/console/class_NodeConsoleDistributedCrawler.php
application/hub/classes/cruncher/class_BaseHubCruncher.php
application/hub/classes/discovery/recipient/socket/class_PackageSocketDiscovery.php
application/hub/classes/factories/chain/class_PackageFilterChainFactory.php
application/hub/classes/factories/chunks/class_ChunkHandlerFactory.php
application/hub/classes/factories/class_
application/hub/classes/factories/client/class_ClientFactory.php
application/hub/classes/factories/communicator/class_CommunicatorFactory.php
application/hub/classes/factories/decoder/class_DecoderFactory.php
application/hub/classes/factories/dht/class_DhtObjectFactory.php
application/hub/classes/factories/discovery/class_PackageDiscoveryFactory.php
application/hub/classes/factories/discovery/class_SocketDiscoveryFactory.php
application/hub/classes/factories/handler/class_MessageTypeHandlerFactory.php
application/hub/classes/factories/handler/class_NetworkPackageHandlerFactory.php
application/hub/classes/factories/handler/class_ProtocolHandlerFactory.php
application/hub/classes/factories/info/class_ConnectionInfoFactory.php
application/hub/classes/factories/lists/class_RecipientListFactory.php
application/hub/classes/factories/locator/class_UniversalNodeLocatorFactory.php
application/hub/classes/factories/node/class_NodeObjectFactory.php
application/hub/classes/factories/package/assembler/class_PackageAssemblerFactory.php
application/hub/classes/factories/package/class_NetworkPackageFactory.php
application/hub/classes/factories/package/fragmenter/class_FragmenterFactory.php
application/hub/classes/factories/producer/class_ProducerFactory.php
application/hub/classes/factories/registry/class_ObjectTypeRegistryFactory.php
application/hub/classes/factories/resolver/class_ProtocolResolverFactory.php
application/hub/classes/factories/socket/class_SocketFactory.php
application/hub/classes/factories/source/units/class_UnitSourceFactory.php
application/hub/classes/factories/source/url/class_UrlSourceObjectFactory.php
application/hub/classes/factories/states/crawler/class_CrawlerStateFactory.php
application/hub/classes/factories/states/cruncher/class_CruncherStateFactory.php
application/hub/classes/factories/states/miner/class_MinerStateFactory.php
application/hub/classes/factories/tags/class_PackageTagsFactory.php
application/hub/classes/filter/activation/node/class_NodeActivationAnnouncementFilter.php
application/hub/classes/filter/apt-proxy/class_AptProxyInitializationFilter.php
application/hub/classes/filter/apt-proxy/class_AptProxyWelcomeTeaserFilter.php
application/hub/classes/filter/bootstrap/apt-proxy/class_AptProxyBootstrap
application/hub/classes/filter/bootstrap/apt-proxy/class_AptProxyBootstrapExtraBootstrappingFilter.php
application/hub/classes/filter/bootstrap/apt-proxy/class_AptProxyBootstrapGenericActivationFilter.php
application/hub/classes/filter/bootstrap/chat/class_ChatBootstrap
application/hub/classes/filter/bootstrap/chat/class_ChatBootstrapExtraBootstrappingFilter.php
application/hub/classes/filter/bootstrap/chat/class_ChatBootstrapGenericActivationFilter.php
application/hub/classes/filter/bootstrap/crawler/class_CrawlerBootstrap
application/hub/classes/filter/bootstrap/crawler/class_CrawlerBootstrapExtraBootstrappingFilter.php
application/hub/classes/filter/bootstrap/crawler/class_CrawlerBootstrapGenericActivationFilter.php
application/hub/classes/filter/bootstrap/cruncher/class_CruncherBootstrap
application/hub/classes/filter/bootstrap/cruncher/class_CruncherBootstrapBufferQueueInitializerFilter.php
application/hub/classes/filter/bootstrap/cruncher/class_CruncherBootstrapExtraBootstrappingFilter.php
application/hub/classes/filter/bootstrap/cruncher/class_CruncherBootstrapGenericActivationFilter.php
application/hub/classes/filter/bootstrap/miner/class_MinerBootstrap
application/hub/classes/filter/bootstrap/miner/class_MinerBootstrapBufferQueueInitializerFilter.php
application/hub/classes/filter/bootstrap/miner/class_MinerBootstrapExtraBootstrappingFilter.php
application/hub/classes/filter/bootstrap/miner/class_MinerBootstrapGenericActivationFilter.php
application/hub/classes/filter/chat/class_ChatInitializationFilter.php
application/hub/classes/filter/chat/class_ChatWelcomeTeaserFilter.php
application/hub/classes/filter/crawler/class_CrawlerInitializationFilter.php
application/hub/classes/filter/crawler/class_CrawlerWelcomeTeaserFilter.php
application/hub/classes/filter/cruncher/class_CruncherInitializationFilter.php
application/hub/classes/filter/cruncher/class_CruncherWelcomeTeaserFilter.php
application/hub/classes/filter/miner/class_MinerInitializationFilter.php
application/hub/classes/filter/miner/class_MinerWelcomeTeaserFilter.php
application/hub/classes/filter/shutdown/apt-proxy/class_AptProxyShutdownFilter.php
application/hub/classes/filter/shutdown/chat/class_ChatShutdownFilter.php
application/hub/classes/filter/shutdown/crawler/class_CrawlerShutdownFilter.php
application/hub/classes/filter/shutdown/cruncher/class_CruncherShutdownFilter.php
application/hub/classes/filter/shutdown/miner/class_MinerShutdownFilter.php
application/hub/classes/filter/shutdown/node/class_NodeShutdownTaskHandlerFilter.php
application/hub/classes/filter/task/apt-proxy/class_AptProxyTaskHandlerInitializerFilter.php
application/hub/classes/filter/task/chat/class_ChatTaskHandlerInitializerFilter.php
application/hub/classes/filter/task/class_BaseCrawlerTaskFilter.php
application/hub/classes/filter/task/crawler/class_CrawlerDistributedTaskHandlerInitializerFilter.php
application/hub/classes/filter/task/cruncher/class_CruncherTaskHandlerInitializerFilter.php
application/hub/classes/filter/task/miner/class_MinerTaskHandlerInitializerFilter.php
application/hub/classes/filter/task/node/class_NodeTaskHandlerInitializerFilter.php
application/hub/classes/handler/data/answer-status/announcement/class_NodeAnnouncementAnswerOkayHandler.php
application/hub/classes/handler/package/class_NetworkPackageHandler.php
application/hub/classes/helper/connection/class_BaseConnectionHelper.php
application/hub/classes/miner/class_BaseHubMiner.php
application/hub/classes/nodes/boot/class_HubBootNode.php
application/hub/classes/nodes/class_BaseHubNode.php
application/hub/classes/nodes/list/class_HubListNode.php
application/hub/classes/nodes/master/class_HubMasterNode.php
application/hub/classes/nodes/regular/class_HubRegularNode.php
application/hub/classes/pools/class_BasePool.php
application/hub/classes/producer/cruncher/class_BaseCruncherProducer.php
application/hub/classes/producer/miner/class_BaseMinerProducer.php
application/hub/classes/tags/package/class_PackageTags.php
application/hub/classes/tasks/crawler/communicator/class_CrawlerNodeCommunicatorTask.php
application/hub/classes/tasks/cruncher/class_CruncherKeyProducerTask.php
application/hub/classes/tasks/cruncher/class_CruncherTestUnitProducerTask.php
application/hub/classes/tasks/cruncher/class_CruncherWorkUnitFetcherTask.php
application/hub/classes/tasks/miner/block_fetcher/class_MinerBlockFetcherTask.php
application/hub/classes/tasks/miner/block_producer/class_MinerRealGenesisBlockProducerTask.php
application/hub/classes/tasks/miner/block_producer/class_MinerTestGenesisBlockProducerTask.php
application/hub/classes/template/xml/objects/class_XmlObjectRegistryTemplateEngine.php
core

index 5f6017359b2ee9f5dae1c487a00c3480c8c11496..83254c90e2ffd0b95daa263fe3d11cf38db65fa3 100644 (file)
@@ -8,7 +8,7 @@ use Org\Mxchange\CoreFramework\Command\Commandable;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -86,13 +86,13 @@ class HubConsoleAptProxyCommand extends BaseCommand implements Commandable {
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BOOTSTRAP: Bootstrap finished.');
 
                // Get apt-proxy instance
-               $proxyInstance = GenericRegistry::getRegistry()->getInstance('apt_proxy');
+               $proxyInstance = ObjectRegistry::getRegistry('hub')->getInstance('apt_proxy');
 
                // Add some apt-proxy-specific filters
                $proxyInstance->addExtraAptProxyFilters();
 
                // Get task handler instance
-               $handlerInstance = GenericRegistry::getRegistry()->getInstance('task_handler');
+               $handlerInstance = ObjectRegistry::getRegistry('generic')->getInstance('task_handler');
 
                // Debug message
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('MAIN: --- Entering main loop. ---');
index ab5d0d12a69262b74f6f30e92046ac021842a6c0..94db02e03dd8e897f4a8410e79814e043453eb5e 100644 (file)
@@ -8,7 +8,7 @@ use Org\Mxchange\CoreFramework\Command\Commandable;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -86,13 +86,13 @@ class HubConsoleChatCommand extends BaseCommand implements Commandable {
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BOOTSTRAP: Bootstrap finished.');
 
                // Get chat instance
-               $chatInstance = GenericRegistry::getRegistry()->getInstance('chat');
+               $chatInstance = ObjectRegistry::getRegistry('hub')->getInstance('chat');
 
                // Add some chat-specific filters
                $chatInstance->addExtraChatFilters();
 
                // Get task handler instance
-               $handlerInstance = GenericRegistry::getRegistry()->getInstance('task_handler');
+               $handlerInstance = ObjectRegistry::getRegistry('generic')->getInstance('task_handler');
 
                // Debug message
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('MAIN: --- Entering main loop. ---');
index eb9df8db3289dc8dd5a83b49f292795c55390a9f..911910a9f1fb415d1bd5331fa246fb83f8174f98 100644 (file)
@@ -8,7 +8,7 @@ use Org\Mxchange\CoreFramework\Command\Commandable;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -86,13 +86,13 @@ class HubConsoleCrawlerCommand extends BaseCommand implements Commandable {
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BOOTSTRAP: Bootstrap finished.');
 
                // Get crawler instance
-               $crawlerInstance = GenericRegistry::getRegistry()->getInstance('crawler');
+               $crawlerInstance = ObjectRegistry::getRegistry('hub')->getInstance('crawler');
 
                // Add some crawler-specific filters
                $crawlerInstance->addExtraCrawlerFilters();
 
                // Get task handler instance
-               $handlerInstance = GenericRegistry::getRegistry()->getInstance('task_handler');
+               $handlerInstance = ObjectRegistry::getRegistry('generic')->getInstance('task_handler');
 
                // Debug message
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('MAIN: --- Entering main loop. ---');
index b8022fee8806653eec139eb19091662d8eb507cf..81844264345c7ee13063970828a277311bd71b8a 100644 (file)
@@ -8,7 +8,7 @@ use Org\Mxchange\CoreFramework\Command\Commandable;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -86,13 +86,13 @@ class HubConsoleCruncherCommand extends BaseCommand implements Commandable {
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BOOTSTRAP: Bootstrap finished.');
 
                // Get cruncher instance
-               $cruncherInstance = GenericRegistry::getRegistry()->getInstance('cruncher');
+               $cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
 
                // Add some cruncher-specific filters
                $cruncherInstance->addExtraCruncherFilters();
 
                // Get task handler instance
-               $handlerInstance = GenericRegistry::getRegistry()->getInstance('task_handler');
+               $handlerInstance = ObjectRegistry::getRegistry('generic')->getInstance('task_handler');
 
                // Debug message
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('MAIN: --- Entering main loop. ---');
index 4826c63aa2f4a726d2a699c44b9f53c95d0565b3..2a3dc47b9a9099760388942e3aaeb05e11520518 100644 (file)
@@ -11,7 +11,7 @@ use Org\Mxchange\CoreFramework\Command\Commandable;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -103,7 +103,7 @@ class HubConsoleDaemonCommand extends BaseCommand implements Commandable {
                $nodeInstance->activateNode($requestInstance, $responseInstance);
 
                // Get task handler instance
-               $handlerInstance = GenericRegistry::getRegistry()->getInstance('task_handler');
+               $handlerInstance = ObjectRegistry::getRegistry('generic')->getInstance('task_handler');
 
                // Debug message
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('MAIN: --- Entering main loop. ---');
index 7b3bfe1a2ba78082a860fbc53a51688cac5eda4d..a286be8ce18d05fa7ac3b0d5799edcba1bd69916 100644 (file)
@@ -8,7 +8,7 @@ use Org\Mxchange\CoreFramework\Command\Commandable;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -86,13 +86,13 @@ class HubConsoleMinerCommand extends BaseCommand implements Commandable {
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BOOTSTRAP: Bootstrap finished.');
 
                // Get miner instance
-               $minerInstance = GenericRegistry::getRegistry()->getInstance('miner');
+               $minerInstance = ObjectRegistry::getRegistry('hub')->getInstance('miner');
 
                // Add some miner-specific filters
                $minerInstance->addExtraMinerFilters();
 
                // Get task handler instance
-               $handlerInstance = GenericRegistry::getRegistry()->getInstance('task_handler');
+               $handlerInstance = ObjectRegistry::getRegistry('generic')->getInstance('task_handler');
 
                // Debug message
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('MAIN: --- Entering main loop. ---');
index d410a9d5b841f03b3fcbd3a4800dd8843c5b1bf4..fc887d097969b8f4fe7bbfe9493806e16498f14c 100644 (file)
@@ -8,7 +8,7 @@ use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\State\Stateable;
 use Org\Mxchange\CoreFramework\Traits\State\StateableTrait;
 
@@ -54,7 +54,7 @@ abstract class BaseNodeCrawler extends BaseHubSystem {
                parent::__construct($className);
 
                // Set this crawler instance in registry
-               GenericRegistry::getRegistry()->addInstance('crawler', $this);
+               ObjectRegistry::getRegistry('hub')->addInstance('crawler', $this);
 
                // Init state which sets the state to 'init'
                $this->initState();
index ccd8bc4e28898f1383b4ec5f96cb327a890abf85..649b73b46af4d0e81afcade30cff58bb22b5ee8a 100644 (file)
@@ -7,7 +7,7 @@ use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
index fbae1b0c8e5dd53418fd77e345285e5d00abc19c..d8bc09223bcb7e105e27f1667872e80e89455060 100644 (file)
@@ -11,7 +11,7 @@ use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Database\Updateable;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A general hub cruncher class
@@ -72,7 +72,7 @@ abstract class BaseHubCruncher extends BaseHubSystem implements Updateable {
                parent::__construct($className);
 
                // Set this cruncher instance in registry
-               GenericRegistry::getRegistry()->addInstance('cruncher', $this);
+               ObjectRegistry::getRegistry('hub')->addInstance('cruncher', $this);
 
                // Init this cruncher
                $this->initCruncher();
index e406aa2ba8a00476380d40411d3678d66d872b29..dd5aeae34c1454c3ba1dc88678b9a6a1b240d088 100644 (file)
@@ -18,7 +18,7 @@ use Org\Shipsimu\Hub\Resolver\State\Peer\PeerStateResolver;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Generic\NullPointerException;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Socket\InvalidSocketException;
 
@@ -216,7 +216,7 @@ class PackageSocketDiscovery extends BaseRecipientDiscovery implements Discovera
                // Try to resolve the socket resource
                try {
                        // Get the helper instance from registry
-                       $helperInstance = GenericRegistry::getRegistry()->getInstance('connection');
+                       $helperInstance = ObjectRegistry::getRegistry('hub')->getInstance('connection');
 
                        // Is a state set and it's name is other than socket's error code?
                        /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('PACKAGE-SOCKET-DISCOVERY: helperInstance->stateInstance[]=%s', gettype($helperInstance->getStateInstance())));
index aaadc016b0f3d579a73f532286aa00d05995a281..e3d409060df307baaba840bfd7953de9ce0d53b4 100644 (file)
@@ -6,6 +6,7 @@ namespace Org\Shipsimu\Hub\Factory\FilterChain\Package;
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A factory class for network packages
@@ -51,9 +52,9 @@ class PackageFilterChainFactory extends BaseFactory {
                $registryKey = GenericRegistry::getRegistryKeyFromArray('package_filter_chain', $tags);
 
                // Is the registry key there?
-               if (GenericRegistry::getRegistry()->instanceExists($registryKey)) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists($registryKey)) {
                        // Yes, then use that instance
-                       $chainInstance = GenericRegistry::getRegistry()->getInstance($registryKey);
+                       $chainInstance = ObjectRegistry::getRegistry('factory')->getInstance($registryKey);
                } else {
                        // Initialize a filter chain class
                        $chainInstance = Object::createObjectByConfiguredName('package_filter_chain_class');
@@ -73,7 +74,7 @@ class PackageFilterChainFactory extends BaseFactory {
                        }
 
                        // Add the finished chain to the registry
-                       GenericRegistry::getRegistry()->addInstance($registryKey, $chainInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance($registryKey, $chainInstance);
                }
 
                // Return the chain instance
index b55295842886ea7c10036f6f9580e478075c36f7..4df383788d4cffe98bcf44b1a57f95f777245bb9 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\Handler\Chunk;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A factory class for chunk handler
@@ -47,15 +47,15 @@ class ChunkHandlerFactory extends BaseFactory {
         */
        public static final function createChunkHandlerInstance () {
                // If there is no handler?
-               if (GenericRegistry::getRegistry()->instanceExists('chunk_handler')) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists('chunk_handler')) {
                        // Get handler from registry
-                       $handlerInstance = GenericRegistry::getRegistry()->getInstance('chunk_handler');
+                       $handlerInstance = ObjectRegistry::getRegistry('factory')->getInstance('chunk_handler');
                } else {
                        // Get the handler instance
                        $handlerInstance = ObjectFactory::createObjectByConfiguredName('chunk_handler_class');
 
                        // Add it to the registry
-                       GenericRegistry::getRegistry()->addInstance('chunk_handler', $handlerInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance('chunk_handler', $handlerInstance);
                }
 
                // Return the instance
index bcbbe18fe50af5857ab89e2f7a7d582587757dfd..f13e617a84374880232ca51481702b3e62585d1d 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A factory class for !!!
@@ -47,15 +47,15 @@ class ???Factory extends BaseFactory {
         */
        public static final function create???Instance () {
                // If there is no handler?
-               if (GenericRegistry::getRegistry()->instanceExists('|||')) {
+               if (ObjectRegistry::getRegistry('hub')->instanceExists('|||')) {
                        // Get handler from registry
-                       $%%%Instance = GenericRegistry::getRegistry()->getInstance('|||');
+                       $%%%Instance = ObjectRegistry::getRegistry('hub')->getInstance('|||');
                } else {
                        // Get the handler instance
                        $%%%Instance = ObjectFactory::createObjectByConfiguredName('|||_class');
 
                        // Add it to the registry
-                       GenericRegistry::getRegistry()->addInstance('|||', $%%%Instance);
+                       ObjectRegistry::getRegistry('hub')->addInstance('|||', $%%%Instance);
                }
 
                // Return the instance
index de5b83babcc81d51f3e40554529375a7cf4b3883..5725a2d5fea483bc87d6a5bfc866e9134f2f8f3c 100644 (file)
@@ -9,7 +9,7 @@ use Org\Shipsimu\Hub\Handler\Protocol\HandleableProtocol;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * An object factory for clients
@@ -62,9 +62,9 @@ class ClientFactory extends BaseFactory {
                $registryKey = strtolower($protocolInstance->getProtocolName()) . '_client';
 
                // Is the key already in registry?
-               if (GenericRegistry::getRegistry()->instanceExists($registryKey)) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists($registryKey)) {
                        // Then use that instance
-                       $clientInstance = GenericRegistry::getRegistry()->getInstance($registryKey);
+                       $clientInstance = ObjectRegistry::getRegistry('factory')->getInstance($registryKey);
 
                        // Is socket instance given?
                        if ($socketInstance instanceof StorableSocket) {
@@ -76,7 +76,7 @@ class ClientFactory extends BaseFactory {
                        $clientInstance = ObjectFactory::createObjectByConfiguredName($registryKey, array($socketInstance));
 
                        // Set it in registry for later re-use
-                       GenericRegistry::getRegistry()->addInstance($registryKey, $clientInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance($registryKey, $clientInstance);
                }
 
                // Return the prepared instance
index 85ad0c5e97820a49f0c0f3e135984a032e529673..6b2c511d1c67bbd079fd7274af2b0588dd727a0a 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\Communicator;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 // Import SPL stuff
 use \InvalidArgumentException;
@@ -63,15 +63,15 @@ class CommunicatorFactory extends BaseFactory {
                }
 
                // If there is no communicator?
-               if (GenericRegistry::getRegistry()->instanceExists($communicatorType . '_communicator')) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists($communicatorType . '_communicator')) {
                        // Get communicator from registry
-                       $communicatorInstance = GenericRegistry::getRegistry()->getInstance($communicatorType . '_communicator');
+                       $communicatorInstance = ObjectRegistry::getRegistry('factory')->getInstance($communicatorType . '_communicator');
                } else {
                        // Get the communicator instance
                        $communicatorInstance = ObjectFactory::createObjectByConfiguredName($configKey);
 
                        // Add it to the registry
-                       GenericRegistry::getRegistry()->addInstance($communicatorType . '_communicator', $communicatorInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance($communicatorType . '_communicator', $communicatorInstance);
                }
 
                // Return the instance
index 4e2ed6011f46e0edf88a37a884f82c62a026e9a6..c9b4ad66c58cecef1c6c9642518870ceba3c2cc4 100644 (file)
@@ -9,7 +9,7 @@ use Org\Shipsimu\Hub\Handler\Network\RawData\Chunks\ChunkHandler;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A factory class for Decodeable objects
@@ -51,9 +51,9 @@ class DecoderFactory extends BaseFactory {
         */
        public static final function createPackageDecoderInstance () {
                // If there is no handler?
-               if (GenericRegistry::getRegistry()->instanceExists('package_decoder')) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists('package_decoder')) {
                        // Get handler from registry
-                       $decoderInstance = GenericRegistry::getRegistry()->getInstance('package_decoder');
+                       $decoderInstance = ObjectRegistry::getRegistry('factory')->getInstance('package_decoder');
                } else {
                        // Get a chunk handler instance
                        $handlerInstance = ChunkHandlerFactory::createChunkHandlerInstance();
@@ -62,7 +62,7 @@ class DecoderFactory extends BaseFactory {
                        $decoderInstance = ObjectFactory::createObjectByConfiguredName('package_decoder_class', array($handlerInstance));
 
                        // Add it to the registry
-                       GenericRegistry::getRegistry()->addInstance('package_decoder', $decoderInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance('package_decoder', $decoderInstance);
                }
 
                // Return the instance
index f3d722ce689ba4600c3a02e1b14034f438e83304..bec1c32be298a4cec5f231732388a2e0a1e36145 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\Dht;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 // Import SPL stuff
 use \InvalidArgumentException;
@@ -60,15 +60,15 @@ class DhtObjectFactory extends BaseFactory {
                $name = $prefix . '_dht';
 
                // If there is no handler?
-               if (GenericRegistry::getRegistry()->instanceExists($name)) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists($name)) {
                        // Get handler from registry
-                       $dhtInstance = GenericRegistry::getRegistry()->getInstance($name);
+                       $dhtInstance = ObjectRegistry::getRegistry('factory')->getInstance($name);
                } else {
                        // Get the handler instance
                        $dhtInstance = ObjectFactory::createObjectByConfiguredName($name . '_class');
 
                        // Add it to the registry
-                       GenericRegistry::getRegistry()->addInstance($name, $dhtInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance($name, $dhtInstance);
                }
 
                // Return the instance
index 5afb10da8cbc8130f29795a45c6b866396f667a7..0c9a3e9b17290c681be28f441532e3165d605675 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\Discovery\Package;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A factory class for package discovery
@@ -49,15 +49,15 @@ class PackageDiscoveryFactory extends BaseFactory {
         */
        public static final function createPackageDiscoveryInstance () {
                // Do we have an instance in the registry?
-               if (GenericRegistry::getRegistry()->instanceExists('package_discovery')) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists('package_discovery')) {
                        // Then use this instance
-                       $discoveryInstance = GenericRegistry::getRegistry()->getInstance('package_discovery');
+                       $discoveryInstance = ObjectRegistry::getRegistry('factory')->getInstance('package_discovery');
                } else {
                        // Create a new instance
                        $discoveryInstance = ObjectFactory::createObjectByConfiguredName('package_recipient_discovery_class');
 
                        // Set the instance in registry for further use
-                       GenericRegistry::getRegistry()->addInstance('package_discovery', $discoveryInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance('package_discovery', $discoveryInstance);
                }
 
                // Return the instance
index 7053deb8d99be7768a089c33393f80f5b9b091d2..25251ac5290824bc80ae3c82f3c6257340f9871b 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\Discovery\Socket;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A factory class for socket discovery
@@ -49,15 +49,15 @@ class SocketDiscoveryFactory extends BaseFactory {
         */
        public static final function createSocketDiscoveryInstance () {
                // Do we have an instance in the registry?
-               if (GenericRegistry::getRegistry()->instanceExists('socket_discovery')) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists('socket_discovery')) {
                        // Then use this instance
-                       $discoveryInstance = GenericRegistry::getRegistry()->getInstance('socket_discovery');
+                       $discoveryInstance = ObjectRegistry::getRegistry('factory')->getInstance('socket_discovery');
                } else {
                        // Create a new instance
                        $discoveryInstance = ObjectFactory::createObjectByConfiguredName('socket_discovery_class');
 
                        // Set the instance in registry for further use
-                       GenericRegistry::getRegistry()->addInstance('socket_discovery', $discoveryInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance('socket_discovery', $discoveryInstance);
                }
 
                // Return the instance
index 822bf960d3bf13a52543af0ea50318a90477ad3c..ba0d455e6d2b7a36fc542c0bb9b55e0ce2661307 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\Handler\Message;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 // Import SPL stuff
 use \InvalidArgumentException;
@@ -62,15 +62,15 @@ class MessageTypeHandlerFactory extends BaseFactory {
                $registryKey = sprintf('message_type_%s_handler', $messageType);
 
                // Do we have an instance in the registry?
-               if (GenericRegistry::getRegistry()->instanceExists($registryKey)) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists($registryKey)) {
                        // Then use this instance
-                       $handlerInstance = GenericRegistry::getRegistry()->getInstance($registryKey);
+                       $handlerInstance = ObjectRegistry::getRegistry('factory')->getInstance($registryKey);
                } else {
                        // Now prepare the tags instance
                        $handlerInstance = ObjectFactory::createObjectByConfiguredName($registryKey . '_class');
 
                        // Set the instance in registry for further use
-                       GenericRegistry::getRegistry()->addInstance($registryKey, $handlerInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance($registryKey, $handlerInstance);
                }
 
                // Return the instance
index ea7a9eab6a52f5bd50e4fb10701b18bf3e579f87..b25ef3214311a908b23dfd34c6c8ccd7af471df5 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\Handler\Network;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A factory class for network packages
@@ -49,9 +49,9 @@ class NetworkPackageHandlerFactory extends BaseFactory {
         */
        public static final function createNetworkPackageHandlerInstance () {
                // Do we have an instance in the registry?
-               if (GenericRegistry::getRegistry()->instanceExists('network_package_handler')) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists('network_package_handler')) {
                        // Then use this instance
-                       $handlerInstance = GenericRegistry::getRegistry()->getInstance('network_package_handler');
+                       $handlerInstance = ObjectRegistry::getRegistry('factory')->getInstance('network_package_handler');
                } else {
                        /*
                         * Prepare the compressor for our package, ZLIB should be fine but we
@@ -70,7 +70,7 @@ class NetworkPackageHandlerFactory extends BaseFactory {
                        $handlerInstance = ObjectFactory::createObjectByConfiguredName('network_package_handler_class', array($compressorInstance));
 
                        // Set the instance in registry for further use
-                       GenericRegistry::getRegistry()->addInstance('network_package_handler', $handlerInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance('network_package_handler', $handlerInstance);
                }
 
                // Return the instance
index 1225645ef1130509db5edbb40dfcbf18aa0e547c..9e0e82958a7ab4d117ed69c2d3414520c6ba736c 100644 (file)
@@ -10,7 +10,7 @@ use Org\Shipsimu\Hub\Network\Package\DeliverablePackage;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A factory class for protocol handlers
@@ -55,15 +55,15 @@ class ProtocolHandlerFactory extends BaseFactory {
         */
        private static function createProtocolHandlerByType (string $protocolType) {
                // Do we have an instance in the registry?
-               if (GenericRegistry::getRegistry()->instanceExists($protocolType . '_protocol_handler')) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists($protocolType . '_protocol_handler')) {
                        // Then use this instance
-                       $handlerInstance = GenericRegistry::getRegistry()->getInstance($protocolType . '_protocol_handler');
+                       $handlerInstance = ObjectRegistry::getRegistry('factory')->getInstance($protocolType . '_protocol_handler');
                } else {
                        // Now prepare the tags instance
                        $handlerInstance = ObjectFactory::createObjectByConfiguredName($protocolType . '_protocol_handler_class');
 
                        // Set the instance in registry for further use
-                       GenericRegistry::getRegistry()->addInstance($protocolType . '_protocol_handler', $handlerInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance($protocolType . '_protocol_handler', $handlerInstance);
                }
 
                // Return the instance
index 74daee0c087934ed0b71d3cff9da2847072efd39..5f169370b6fdbd0f43e16d7cb5a1e67459a54f05 100644 (file)
@@ -8,7 +8,7 @@ use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 // Import SPL stuff
 use \InvalidArgumentException;
@@ -89,10 +89,10 @@ class ConnectionInfoFactory extends BaseFactory {
 
                // If there is no info?
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-INFO-FACTORY: key=%s', $key));
-               if (GenericRegistry::getRegistry()->instanceExists($key)) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists($key)) {
                        // Get info from registry
                        /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-INFO-FACTORY: Getting instance for key=%s ...', $key));
-                       $infoInstance = GenericRegistry::getRegistry()->getInstance($key);
+                       $infoInstance = ObjectRegistry::getRegistry('factory')->getInstance($key);
                } else {
                        // Get the info instance
                        /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-INFO-FACTORY: Creating info instance for connectionType=%s ...', $connectionType));
@@ -100,7 +100,7 @@ class ConnectionInfoFactory extends BaseFactory {
 
                        // Add it to the registry
                        /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-INFO-FACTORY: Adding key=%s,infoInstance=%s ...', $key, $infoInstance->__toString()));
-                       GenericRegistry::getRegistry()->addInstance($key, $infoInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance($key, $infoInstance);
                }
 
                // Return the instance
index 39978519486612581675e619bd97d604567970c2..5f7554de13d588085715aa86b41beb3b4ea93d4b 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\Lists\Recipient;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A factory class for recipient lists
@@ -49,15 +49,15 @@ class RecipientListFactory extends BaseFactory {
         */
        public static final function createRecipientListInstance () {
                // Do we have an instance in the registry?
-               if (GenericRegistry::getRegistry()->instanceExists('recipient_list')) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists('recipient_list')) {
                        // Then use this instance
-                       $listInstance = GenericRegistry::getRegistry()->getInstance('recipient_list');
+                       $listInstance = ObjectRegistry::getRegistry('factory')->getInstance('recipient_list');
                } else {
                        // Create a new instance
                        $listInstance = ObjectFactory::createObjectByConfiguredName('recipient_list_class');
 
                        // Set the instance in registry for further use
-                       GenericRegistry::getRegistry()->addInstance('recipient_list', $listInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance('recipient_list', $listInstance);
                }
 
                // Return the instance
index e1a474a359d96bbb1485a9e297cbd1bd8c79b3ab..102c85fe121ac0db55109dcfc5547d50696ebc9d 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\Network\Locator;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 // Import SPL stuff
 use \InvalidArgumentException;
@@ -58,9 +58,9 @@ class UniversalNodeLocatorFactory extends BaseFactory {
                }
 
                // If there is no handler?
-               if (GenericRegistry::getRegistry()->instanceExists('unl_' . $unl)) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists('unl_' . $unl)) {
                        // Get handler from registry
-                       $locatorInstance = GenericRegistry::getRegistry()->getInstance('unl_' . $unl);
+                       $locatorInstance = ObjectRegistry::getRegistry('factory')->getInstance('unl_' . $unl);
                } else {
                        // Get the handler instance
                        $locatorInstance = ObjectFactory::createObjectByConfiguredName('universal_node_locator_class');
@@ -69,7 +69,7 @@ class UniversalNodeLocatorFactory extends BaseFactory {
                        $locatorInstance->parseStringAsUnl($unl);
 
                        // Add it to the registry
-                       GenericRegistry::getRegistry()->addInstance('unl_' . $unl, $locatorInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance('unl_' . $unl, $locatorInstance);
                }
 
                // Trace message
index 346ea2b155894258a3aa27533079489d8ea00a13..c92ec5fb9ecb2a6b5fc296f52a96265ebb60e3d1 100644 (file)
@@ -2,12 +2,15 @@
 // Own namespace
 namespace Org\Shipsimu\Hub\Factory\Node;
 
+// Import application-specific stuff
+use Org\Shipsimu\Hub\Factory\Parameter\FactoryRequiredParameterException;
+
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 use Org\Mxchange\CoreFramework\Utils\Strings\StringUtils;
@@ -59,11 +62,11 @@ class NodeObjectFactory extends BaseFactory {
                $factoryInstance = new NodeObjectFactory();
 
                // If there is no handler?
-               if (GenericRegistry::getRegistry()->instanceExists('node')) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists('node')) {
                        // Get handler from registry
                        //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NODE-FACTORY: Getting node instance from registry ...');
 
-                       $nodeInstance = GenericRegistry::getRegistry()->getInstance('node');
+                       $nodeInstance = ObjectRegistry::getRegistry('factory')->getInstance('node');
                } elseif (($requestInstance instanceof Requestable) && ($responseInstance instanceof Responseable)) {
                        // The default node-mode is from our configuration
                        //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NODE-FACTORY: requestInstance and responseInstance are both set.');
@@ -100,7 +103,7 @@ class NodeObjectFactory extends BaseFactory {
 
                        // Add it to the registry
                        //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('NODE-FACTORY: Adding nodeInstance=%s to registry ...', $nodeInstance->__toString()));
-                       GenericRegistry::getRegistry()->addInstance('node', $nodeInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance('node', $nodeInstance);
                } else {
                        // Throw an exception here
                        throw new FactoryRequiredParameterException($factoryInstance, self::EXCEPTION_FACTORY_REQUIRE_PARAMETER);
index abf09f7cc0bc2eec8b22433eda36ec3c42d268e3..11dd9bff076e3380512597db984bf8de5f07b081 100644 (file)
@@ -8,7 +8,7 @@ use Org\Shipsimu\Hub\Network\Receive\Receivable;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A factory class for package assembler
@@ -53,15 +53,15 @@ class PackageAssemblerFactory extends BaseFactory {
         */
        public static final function createAssemblerInstance (Receivable $handlerInstance) {
                // If there is no assembler?
-               if (GenericRegistry::getRegistry()->instanceExists('package_assembler')) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists('package_assembler')) {
                        // Get assembler from registry
-                       $assemblerInstance = GenericRegistry::getRegistry()->getInstance('package_assembler');
+                       $assemblerInstance = ObjectRegistry::getRegistry('factory')->getInstance('package_assembler');
                } else {
                        // Get the assembler instance
                        $assemblerInstance = ObjectFactory::createObjectByConfiguredName('package_assembler_class', array($handlerInstance));
 
                        // Add it to the registry
-                       GenericRegistry::getRegistry()->addInstance('package_assembler', $assemblerInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance('package_assembler', $assemblerInstance);
                }
 
                // Return the instance
index e79ab15418c38259a26f3a7a3b5492c9fd51e7c8..c1eac4bd6e57cd63bb7676407660bc1935155bc4 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\Network;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A factory class for network packages
@@ -49,9 +49,9 @@ class NetworkPackageFactory extends BaseFactory {
         */
        public static final function createNetworkPackageHandlerInstance () {
                // Do we have an instance in the registry?
-               if (GenericRegistry::getRegistry()->instanceExists('network_package')) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists('network_package')) {
                        // Then use this instance
-                       $packageInstance = GenericRegistry::getRegistry()->getInstance('network_package');
+                       $packageInstance = ObjectRegistry::getRegistry('factory')->getInstance('network_package');
                } else {
                        /*
                         * Prepare the compressor for our package, ZLIB should be fine but we
@@ -70,7 +70,7 @@ class NetworkPackageFactory extends BaseFactory {
                        $packageInstance = ObjectFactory::createObjectByConfiguredName('network_package_class', array($compressorInstance));
 
                        // Set the instance in registry for further use
-                       GenericRegistry::getRegistry()->addInstance('network_package', $packageInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance('network_package', $packageInstance);
                }
 
                // Return the instance
index b56436846c68dae0460af6413b40b2f307b666f3..40d572d83fc2b276f7ed89d36d95a44eaaf047db 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\Fragmenter;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 // Import SPL stuff
 use \InvalidArgumentException;
@@ -59,15 +59,15 @@ class FragmenterFactory extends BaseFactory {
                }
 
                // If there is no fragmenter?
-               if (GenericRegistry::getRegistry()->instanceExists($fragmenterType . '_fragmenter')) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists($fragmenterType . '_fragmenter')) {
                        // Get fragmenter from registry
-                       $fragmenterInstance = GenericRegistry::getRegistry()->getInstance($fragmenterType . '_fragmenter');
+                       $fragmenterInstance = ObjectRegistry::getRegistry('factory')->getInstance($fragmenterType . '_fragmenter');
                } else {
                        // Get the fragmenter instance
                        $fragmenterInstance = ObjectFactory::createObjectByConfiguredName($fragmenterType . '_fragmenter_class');
 
                        // Add it to the registry
-                       GenericRegistry::getRegistry()->addInstance($fragmenterType . '_fragmenter', $fragmenterInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance($fragmenterType . '_fragmenter', $fragmenterInstance);
                }
 
                // Return the instance
index 808cd434b0a27e0902eb3ae9121e67a5f43211d4..53217653940c442acb14a90b380f9a8c9e47a2f7 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\Producer;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A factory class for producer
@@ -51,15 +51,15 @@ class ProducerFactory extends BaseFactory {
         */
        public static final function createProducerInstance (string $configEntry, string $producerType) {
                // If there is no producer?
-               if (GenericRegistry::getRegistry()->instanceExists($producerType . '_producer')) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists($producerType . '_producer')) {
                        // Get producer from registry
-                       $producerInstance = GenericRegistry::getRegistry()->getInstance($producerType . '_producer');
+                       $producerInstance = ObjectRegistry::getRegistry('factory')->getInstance($producerType . '_producer');
                } else {
                        // Get the producer instance
                        $producerInstance = ObjectFactory::createObjectByConfiguredName($configEntry);
 
                        // Add it to the registry
-                       GenericRegistry::getRegistry()->addInstance($producerType . '_producer', $producerInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance($producerType . '_producer', $producerInstance);
                }
 
                // Return the instance
index 4bfee19f098ddc7a30209577005cbfbac81c5f4c..963cb849447f662a37630b43485cfcf1f8504b8a 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\Registry\Object;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A factory class for network packages
@@ -47,15 +47,15 @@ class ObjectTypeRegistryFactory extends BaseFactory {
         */
        public static final function createObjectTypeRegistryInstance () {
                // Do we have an instance in the registry?
-               if (GenericRegistry::getRegistry()->instanceExists('object_type_registry')) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists('object_type_registry')) {
                        // Then use this instance
-                       $registryInstance = GenericRegistry::getRegistry()->getInstance('object_type_registry');
+                       $registryInstance = ObjectRegistry::getRegistry('factory')->getInstance('object_type_registry');
                } else {
                        // Now prepare the tags instance
                        $registryInstance = ObjectFactory::createObjectByConfiguredName('node_object_type_registry_class');
 
                        // Set the instance in registry for further use
-                       GenericRegistry::getRegistry()->addInstance('object_type_registry', $registryInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance('object_type_registry', $registryInstance);
                }
 
                // Return the instance
index 859ea40770d4b39ec8f1ea38c83cff5b1270d1ea..b5bc7f2adb055871a51d17a318d94053535f943c 100644 (file)
@@ -6,7 +6,7 @@ namespace Org\Shipsimu\Hub\Factory\Resolver\Protocol;
 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A factory class for ProtocolResolver
@@ -51,15 +51,15 @@ class ProtocolResolverFactory extends BaseFactory {
                $protocolName = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('hub_communication_protocol_type');
 
                // If there is no handler?
-               if (GenericRegistry::getRegistry()->instanceExists($protocolName . '_protocol_resolver')) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists($protocolName . '_protocol_resolver')) {
                        // Get handler from registry
-                       $resolverInstance = GenericRegistry::getRegistry()->getInstance($protocolName . '_protocol_resolver');
+                       $resolverInstance = ObjectRegistry::getRegistry('factory')->getInstance($protocolName . '_protocol_resolver');
                } else {
                        // Get the handler instance
                        $resolverInstance = ObjectFactory::createObjectByConfiguredName($protocolName . '_protocol_resolver_class');
 
                        // Add it to the registry
-                       GenericRegistry::getRegistry()->addInstance($protocolName . '_protocol_resolver', $resolverInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance($protocolName . '_protocol_resolver', $resolverInstance);
                }
 
                // Return the instance
index f74dc2152cd8eef17e58c00078ab0cf515c6ed51..cafb1e9e0dd8065f575016e13c00e91e1ced9af6 100644 (file)
@@ -15,7 +15,7 @@ use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\EntryPoint\ApplicationEntryPoint;
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Socket\InvalidSocketException;
 
 // Import SPL stuff
@@ -79,9 +79,9 @@ class SocketFactory extends BaseFactory {
 
                // Is the key there?
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('SOCKET-FACTORY: Trying to find a socket with registryKey=%s', $registryKey));
-               if (GenericRegistry::getRegistry()->instanceExists($registryKey)) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists($registryKey)) {
                        // Get container instance
-                       $socketInstance = GenericRegistry::getRegistry()->getInstance($registryKey);
+                       $socketInstance = ObjectRegistry::getRegistry('factory')->getInstance($registryKey);
 
                        // Debug message
                        /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('SOCKET-FACTORY: Using socketResource[%s]=%s from registry.', gettype($socketInstance->getSocketResource()), $socketInstance->getSocketResource()));
@@ -90,7 +90,7 @@ class SocketFactory extends BaseFactory {
                        $socketInstance = ObjectFactory::createObjectByConfiguredName(sprintf('%s_connection_helper_class', $protocolInstance->getProtocolName()), array($packageInstance));
 
                        // Register it with the registry
-                       GenericRegistry::getRegistry()->addInstance($registryKey, $socketInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance($registryKey, $socketInstance);
 
                        // Debug message
                        /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('SOCKET-FACTORY: Socket is now registered in registry.');
@@ -419,15 +419,15 @@ class SocketFactory extends BaseFactory {
                $socketProtocol = $socketInstance->getSocketProtocol();
 
                // Is the an iterator instance?
-               if (!GenericRegistry::getRegistry()->instanceExists('pool_iterator_' . $socketProtocol)) {
+               if (!ObjectRegistry::getRegistry('factory')->instanceExists('pool_iterator_' . $socketProtocol)) {
                        // Create iterator instance
                        $iteratorInstance = $poolInstance->createListIteratorInstance($socketProtocol . '_pool');
 
                        // Now store it in registry
-                       GenericRegistry::getRegistry()->addInstance('pool_iterator', $iteratorInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance('pool_iterator', $iteratorInstance);
                } else {
                        // Get iterator from registry
-                       $iteratorInstance = GenericRegistry::getRegistry()->getInstance('pool_iterator_' . $socketProtocol);
+                       $iteratorInstance = ObjectRegistry::getRegistry('factory')->getInstance('pool_iterator_' . $socketProtocol);
                }
 
                // Is it valid?
index 2fcf12af779893045731ebbf11e7b7eacd76e432..7d95052418b839d9d3fa7307aca1880136de1cdd 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\Crawler\Source\Unit;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 // Import SPL stuff
 use \InvalidArgumentException;
@@ -57,7 +57,7 @@ class UnitSourceFactory extends BaseFactory {
                }
 
                // Do we have cache?
-               if (!GenericRegistry::getRegistry()->instanceExists($unitType . '_unit_source')) {
+               if (!ObjectRegistry::getRegistry('factory')->instanceExists($unitType . '_unit_source')) {
                        // Then construct the class' configuraton entry
                        $className = '' . $unitType . '_unit_source_class';
 
@@ -65,10 +65,10 @@ class UnitSourceFactory extends BaseFactory {
                        $sourceInstance = ObjectFactory::createObjectByConfiguredName($className);
 
                        // Add it to the registry
-                       GenericRegistry::getRegistry()->addInstance($unitType . '_unit_source', $sourceInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance($unitType . '_unit_source', $sourceInstance);
                } else {
                        // Get it from registry
-                       $sourceInstance = GenericRegistry::getRegistry()->getInstance($unitType . '_unit_source');
+                       $sourceInstance = ObjectRegistry::getRegistry('factory')->getInstance($unitType . '_unit_source');
                }
 
                // For any purposes, return the source instance
index bbd8fdce4652ba006794d6319b49d74175c0446a..c3c136bb2e94aea71e35752aadbaec1a6a9ab27a 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Crawler\Source\Url;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Task\Taskable;
 
 /**
@@ -52,7 +52,7 @@ class UrlSourceObjectFactory extends BaseFactory {
                $factoryInstance = new UrlSourceObjectFactory();
 
                // Get task handler instance
-               $handlerInstance = GenericRegistry::getRegistry()->getInstance('task_handler');
+               $handlerInstance = ObjectRegistry::getRegistry('factory')->getInstance('task_handler');
 
                // Get source type by looking for given task instance in task handler
                $sourceType = $handlerInstance->searchTask($taskInstance);
@@ -61,15 +61,15 @@ class UrlSourceObjectFactory extends BaseFactory {
                assert(!empty($sourceType));
 
                // If there is no handler?
-               if (GenericRegistry::getRegistry()->instanceExists('source_' . $sourceType)) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists('source_' . $sourceType)) {
                        // Get handler from registry
-                       $sourceInstance = GenericRegistry::getRegistry()->getInstance('source_' . $sourceType);
+                       $sourceInstance = ObjectRegistry::getRegistry('factory')->getInstance('source_' . $sourceType);
                } else {
                        // Get the source instance
                        $sourceInstance = ObjectFactory::createObjectByConfiguredName($sourceType . '_class');
 
                        // Add it to the registry
-                       GenericRegistry::getRegistry()->addInstance('source_' . $sourceType, $sourceInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance('source_' . $sourceType, $sourceInstance);
                }
 
                // Return the instance
index 01fae9fe1749a34c5fd9c8dce9700c24d380743c..9cc9efffe1c3f17f4b002122ed4c9580c9bcff7a 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Crawler\Factory\State;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 // Import SPL stuff
 use \InvalidArgumentException;
@@ -61,7 +61,7 @@ class CrawlerStateFactory extends BaseFactory {
                $stateInstance = ObjectFactory::createObjectByConfiguredName('crawler_' . $stateName . '_state_class');
 
                // Get crawler instance
-               $crawlerInstance = GenericRegistry::getRegistry()->getInstance('crawler');
+               $crawlerInstance = ObjectRegistry::getRegistry('factory')->getInstance('crawler');
 
                // Debug message
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CRAWLER-STATE-FACTORY: Crawler state has changed from ' . $crawlerInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
index 54b50fdec263e9ffd0e1499e5f13d98c9884328e..9d2c409d834d00d941e3696e0ac3696431f1f931 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\State\Cruncher;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 // Import SPL stuff
 use \InvalidArgumentException;
@@ -58,7 +58,7 @@ class CruncherStateFactory extends BaseFactory {
                }
 
                // Get cruncher instance from registry
-               $cruncherInstance = GenericRegistry::getRegistry()->getInstance('cruncher');
+               $cruncherInstance = ObjectRegistry::getRegistry('factory')->getInstance('cruncher');
 
                // Get a class from that configuration entry
                $stateInstance = ObjectFactory::createObjectByConfiguredName(sprintf('cruncher_%s_state_class', $stateName));
index 6daf8042a367081af045ecf2e659d9050e52c14c..56969a1cd60d5761a2a6a17e6a466c944622458c 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\State\Miner;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 // Import SPL stuff
 use \InvalidArgumentException;
@@ -58,7 +58,7 @@ class MinerStateFactory extends BaseFactory {
                }
 
                // Get miner instance
-               $minerInstance = GenericRegistry::getRegistry()->getInstance('miner');
+               $minerInstance = ObjectRegistry::getRegistry('factory')->getInstance('miner');
 
                // Get a class from that configuration entry
                $stateInstance = ObjectFactory::createObjectByConfiguredName('miner_' . $stateName . '_state_class');
index 8cd93ae41d825640439d3ef2b38395d37827a527..aaafb8dd6ce0b6ba5246af424e7195cc20dc6e27 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Factory\Tag\Package;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A factory class for network packages
@@ -49,15 +49,15 @@ class PackageTagsFactory extends BaseFactory {
         */
        public static final function createPackageTagsInstance () {
                // Do we have an instance in the registry?
-               if (GenericRegistry::getRegistry()->instanceExists('package_tags')) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists('package_tags')) {
                        // Then use this instance
-                       $packageInstance = GenericRegistry::getRegistry()->getInstance('package_tags');
+                       $packageInstance = ObjectRegistry::getRegistry('factory')->getInstance('package_tags');
                } else {
                        // Now prepare the tags instance
                        $packageInstance = ObjectFactory::createObjectByConfiguredName('package_tags_class');
 
                        // Set the instance in registry for further use
-                       GenericRegistry::getRegistry()->addInstance('package_tags', $packageInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance('package_tags', $packageInstance);
                }
 
                // Return the instance
index 83e8bbf2bd783c462f578fd65207b1efc6e582e0..b07ccb707008eed123910e34e3ad1d57adb7ecef 100644 (file)
@@ -8,7 +8,7 @@ use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -67,7 +67,7 @@ class NodeActivationAnnouncementFilter extends BaseNodeFilter implements Filtera
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get task handler instance
-               $handlerInstance = GenericRegistry::getRegistry()->getInstance('task_handler');
+               $handlerInstance = ObjectRegistry::getRegistry('generic')->getInstance('task_handler');
 
                // Prepare a self-test task for the listeners
                $taskInstance = ObjectFactory::createObjectByConfiguredName('node_announcement_task_class');
index 9824db0fbe3249fbf7a5eb0391dde7d9a97c1e82..af7c0f8edbaf0acf4561767ed5ede5d6b1ffd9d0 100644 (file)
@@ -9,7 +9,7 @@ use Org\Shipsimu\Hub\AptProxy\Filter\BaseAptProxyFilter;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filter\Filterable;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -78,7 +78,7 @@ class AptProxyInitializationFilter extends BaseAptProxyFilter implements Filtera
                $proxyInstance->addExtraFilters($applicationInstance->getControllerInstance(), $responseInstance);
 
                // Set the apt_proxy instance in registry
-               GenericRegistry::getRegistry()->addInstance('apt_proxy', $proxyInstance);
+               ObjectRegistry::getRegistry('hub')->addInstance('apt_proxy', $proxyInstance);
        }
 
 }
index 06e4fd9a3f99d4991d675d2bc43feaa9d48345b8..e3af90ce9df9b7ccbddd97aa45bb678e8fc32cf4 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\AptProxy\Filter\BaseAptProxyFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -68,7 +68,7 @@ class AptProxyWelcomeTeaserFilter extends BaseAptProxyFilter implements Filterab
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get node instance
-               $proxyInstance = GenericRegistry::getRegistry()->getInstance('apt_proxy');
+               $proxyInstance = ObjectRegistry::getRegistry('hub')->getInstance('apt_proxy');
 
                // Now output the teaser
                $proxyInstance->outputConsoleTeaser();
index a3a59a947c3e21fd425d065378f5507509ab6477..f8388a3943cff22d4a8458cbab2fe5ff5def0f44 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Filter\Bootstrap\AptProxy\;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -65,7 +65,7 @@ class AptProxyBootstrap???Filter extends BaseAptProxyFilter implements Filterabl
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get apt-proxy instance
-               $proxyInstance = GenericRegistry::getRegistry()->getInstance('apt_proxy');
+               $proxyInstance = ObjectRegistry::getRegistry('hub')->getInstance('apt_proxy');
 
                // Now do something
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this step.');
index 8658a1009d32eae19c1cfd9f730a06ac846838be..aab49d44fcc7bda714d8a45c41670481b9a8ee36 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\AptProxy\Filter\BaseAptProxyFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -67,7 +67,7 @@ class AptProxyBootstrapExtraBootstrappingFilter extends BaseAptProxyFilter imple
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get apt-proxy instance
-               $proxyInstance = GenericRegistry::getRegistry()->getInstance('apt_proxy');
+               $proxyInstance = ObjectRegistry::getRegistry('hub')->getInstance('apt_proxy');
 
                // Do some extra bootstrapping steps
                $proxyInstance->doBootstrapping();
index a333613a9dc1606ad86c5cd67e24e61dde6f10b8..46fedc320f6cc0c10fa6e5498480fda9cf778bf3 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\AptProxy\Filter\BaseAptProxyFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -67,7 +67,7 @@ class AptProxyBootstrapGenericActivationFilter extends BaseAptProxyFilter implem
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get a apt-proxy instance
-               $proxyInstance = GenericRegistry::getRegistry()->getInstance('apt_proxy');
+               $proxyInstance = ObjectRegistry::getRegistry('hub')->getInstance('apt_proxy');
 
                // Set the flag
                $proxyInstance->enableIsActive();
index 72b9f4eb000f32e415fa3381c981a5648a10bad3..a0a2161f666b2cd8f806ae412f9e6045047a7311 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Filter\Bootstrap\Chat\;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -65,7 +65,7 @@ class ChatBootstrap???Filter extends BaseChatFilter implements Filterable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get chat instance
-               $chatInstance = GenericRegistry::getRegistry()->getInstance('chat');
+               $chatInstance = ObjectRegistry::getRegistry('hub')->getInstance('chat');
 
                // Now do something
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this step.');
index 4c01b7e6abe42292faa1dd43867ebcd3db1699ad..5da5bd4439a7d3956729033538458daead4bccba 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Chat\Filter\BaseChatFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -67,7 +67,7 @@ class ChatBootstrapExtraBootstrappingFilter extends BaseChatFilter implements Fi
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get chat instance
-               $chatInstance = GenericRegistry::getRegistry()->getInstance('chat');
+               $chatInstance = ObjectRegistry::getRegistry('hub')->getInstance('chat');
 
                // Do some extra bootstrapping steps
                $chatInstance->doBootstrapping();
index bc9856ca680738ae2337b4ba826164100df3a7cc..d845a3bd125bc8cf45d20cc94b3dfcbe8deef6df 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Chat\Filter\BaseChatFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -67,7 +67,7 @@ class ChatBootstrapGenericActivationFilter extends BaseChatFilter implements Fil
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get a chat instance
-               $chatInstance = GenericRegistry::getRegistry()->getInstance('chat');
+               $chatInstance = ObjectRegistry::getRegistry('hub')->getInstance('chat');
 
                // Set the flag
                $chatInstance->enableIsActive();
index 6c711e5631830e7e0d10592666c66fc31bea501d..e47057004d039fef1659621dc25cd960a5dc709f 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Filter\Bootstrap\Crawler\;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -65,7 +65,7 @@ class CrawlerBootstrap???Filter extends BaseCrawlerFilter implements Filterable
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get crawler instance
-               $crawlerInstance = GenericRegistry::getRegistry()->getInstance('crawler');
+               $crawlerInstance = ObjectRegistry::getRegistry('hub')->getInstance('crawler');
 
                // Now do something
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this step.');
index 9ea9b474ff3eae824890bee78dda3c6c5a578ec6..4aec418be9b9f4b503dc0d77b5a89c296b47ae72 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Crawler\Filter\BaseCrawlerFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -67,7 +67,7 @@ class CrawlerBootstrapExtraBootstrappingFilter extends BaseCrawlerFilter impleme
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get crawler instance
-               $crawlerInstance = GenericRegistry::getRegistry()->getInstance('crawler');
+               $crawlerInstance = ObjectRegistry::getRegistry('hub')->getInstance('crawler');
 
                // Do some extra bootstrapping steps
                $crawlerInstance->doBootstrapping();
index e4935d64ddfe36a618b3bab2d6e3a41eb61d7a9a..daef9b1097d1631e915eda9f63ffe2a0eb801474 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Crawler\Filter\BaseCrawlerFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -67,7 +67,7 @@ class CrawlerBootstrapGenericActivationFilter extends BaseCrawlerFilter implemen
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get a crawler instance
-               $crawlerInstance = GenericRegistry::getRegistry()->getInstance('crawler');
+               $crawlerInstance = ObjectRegistry::getRegistry('hub')->getInstance('crawler');
 
                // Set the flag
                $crawlerInstance->enableIsActive();
index 4679d0a3a0a589b966d2c759ae8aa0f597bbfb29..01bf372017412e29f2ea5dc4a5346c69353297b6 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Filter\Bootstrap\Cruncher\;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -65,7 +65,7 @@ class CruncherBootstrap???Filter extends BaseCruncherFilter implements Filterabl
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get cruncher instance
-               $cruncherInstance = GenericRegistry::getRegistry()->getInstance('cruncher');
+               $cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
 
                // Now do something
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this step.');
index e22a5ea4e5e989586868dbfbce7e88f0d3d9af27..8ebabc6c4c73f18fdd3cd8f361f55d670703f2a3 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Cruncher\Filter\BaseCruncherFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -67,7 +67,7 @@ class CruncherBootstrapBufferQueueInitializerFilter extends BaseCruncherFilter i
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get cruncher instance
-               $cruncherInstance = GenericRegistry::getRegistry()->getInstance('cruncher');
+               $cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
 
                // Init all buffer queues
                $cruncherInstance->initBufferQueues();
index 57b17f3354678f3589694350154704ed3c9ed5df..3d7936b9c714e2762268b23e3a91f5ad50c12a4f 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Cruncher\Filter\BaseCruncherFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -67,7 +67,7 @@ class CruncherBootstrapExtraBootstrappingFilter extends BaseCruncherFilter imple
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get cruncher instance
-               $cruncherInstance = GenericRegistry::getRegistry()->getInstance('cruncher');
+               $cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
 
                // Do some extra bootstrapping steps
                $cruncherInstance->doBootstrapping();
index 152a0db02903ebd0205edd6f545d824f7953e52e..d7a5ee75e1357f6a22a01c4fd3d71a67337481e9 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Cruncher\Filter\BaseCruncherFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -67,7 +67,7 @@ class CruncherBootstrapGenericActivationFilter extends BaseCruncherFilter implem
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get a cruncher instance
-               $cruncherInstance = GenericRegistry::getRegistry()->getInstance('cruncher');
+               $cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
 
                // Set the flag
                $cruncherInstance->enableIsActive();
index a29d7d4aed4a5309421166a24a84d2fcf8533e31..800f2a1e48b7e2f525b7495ff49844e63c382207 100644 (file)
@@ -8,7 +8,7 @@ use Org\Shipsimu\Hub\Miner\Filter\BaseMinerFilter;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -68,7 +68,7 @@ class MinerBootstrap???Filter extends BaseMinerFilter implements Filterable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get miner instance
-               $minerInstance = GenericRegistry::getRegistry()->getInstance('miner');
+               $minerInstance = ObjectRegistry::getRegistry('hub')->getInstance('miner');
 
                // Now do something
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this step.');
index 9bf5cbd2aed0ad674b3958fc8cbd63ce2286fc05..e2424e9a7643a19661615e2a48b70064e77337af 100644 (file)
@@ -4,7 +4,7 @@ namespace Org\Shipsimu\Hub\Filter\Bootstrap\Miner\Queue;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -67,7 +67,7 @@ class MinerBootstrapBufferQueueInitializerFilter extends BaseMinerFilter impleme
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get miner instance
-               $minerInstance = GenericRegistry::getRegistry()->getInstance('miner');
+               $minerInstance = ObjectRegistry::getRegistry('hub')->getInstance('miner');
 
                // Init all buffer queues
                $minerInstance->initBufferQueues();
index f14f60cdb772f0b272ecc3e74bb320e49a37e49b..599f534fa90c46cfa02944422de9807c7ae18db9 100644 (file)
@@ -4,7 +4,7 @@ namespace Org\Shipsimu\Hub\Filter\Bootstrap\Miner\Extra;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -67,7 +67,7 @@ class MinerBootstrapExtraBootstrappingFilter extends BaseMinerFilter implements
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get miner instance
-               $minerInstance = GenericRegistry::getRegistry()->getInstance('miner');
+               $minerInstance = ObjectRegistry::getRegistry('hub')->getInstance('miner');
 
                // Do some extra bootstrapping steps
                $minerInstance->doBootstrapping();
index 53c4621c6d2668778e0961d53f47fb6d6feefd1c..ac78b7742d5b769ccfc30cde39d12247bc37ee73 100644 (file)
@@ -4,7 +4,7 @@ namespace Org\Shipsimu\Hub\Filter\Bootstrap\Miner\Activation;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -67,7 +67,7 @@ class MinerBootstrapGenericActivationFilter extends BaseMinerFilter implements F
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get a miner instance
-               $minerInstance = GenericRegistry::getRegistry()->getInstance('miner');
+               $minerInstance = ObjectRegistry::getRegistry('hub')->getInstance('miner');
 
                // Set the flag
                $minerInstance->enableIsActive();
index 696f5409cf524874eac6eecde357b4b5bcc373ae..6f03a23cef807944731be1d009294a5493c6061f 100644 (file)
@@ -9,7 +9,7 @@ use Org\Shipsimu\Hub\Chat\Filter\BaseChatFilter;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filter\Filterable;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -78,7 +78,7 @@ class ChatInitializationFilter extends BaseChatFilter implements Filterable {
                $chatInstance->addExtraFilters($applicationInstance->getControllerInstance(), $responseInstance);
 
                // Set the chat instance in registry
-               GenericRegistry::getRegistry()->addInstance('chat', $chatInstance);
+               ObjectRegistry::getRegistry('hub')->addInstance('chat', $chatInstance);
        }
 
 }
index 60e742bff5e3f07a3f8232455c77ff0749a251b6..27e8bf917ada541b3194ab4191e63075bcbd18a7 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Chat\Filter\BaseChatFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -68,7 +68,7 @@ class ChatWelcomeTeaserFilter extends BaseChatFilter implements Filterable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get node instance
-               $chatInstance = GenericRegistry::getRegistry()->getInstance('chat');
+               $chatInstance = ObjectRegistry::getRegistry('hub')->getInstance('chat');
 
                // Now output the teaser
                $chatInstance->outputConsoleTeaser();
index fee0f05fedc2234d5e088228394c5a64e4d93ff1..8703d61bb5e297a2ad7a63219d6ecd3136742f87 100644 (file)
@@ -9,7 +9,7 @@ use Org\Shipsimu\Hub\Crawler\Filter\BaseCrawlerFilter;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filter\Filterable;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
index e8cbf0386674c7903289cee7cb6c3d137bb6494e..59bec3866d55aeb6b654b4615920e4583d0986e2 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Crawler\Filter\BaseCrawlerFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -68,7 +68,7 @@ class CrawlerWelcomeTeaserFilter extends BaseCrawlerFilter implements Filterable
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get node instance
-               $crawlerInstance = GenericRegistry::getRegistry()->getInstance('crawler');
+               $crawlerInstance = ObjectRegistry::getRegistry('hub')->getInstance('crawler');
 
                // Now output the teaser
                $crawlerInstance->outputConsoleTeaser();
index fa6bb7468583be3e89f9c994e1a6f442d82c8d61..1633d98a1519bfe820b840e02b8088cfe68f05e3 100644 (file)
@@ -9,7 +9,7 @@ use Org\Shipsimu\Hub\Cruncher\Filter\BaseCruncherFilter;
 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
index aa3d966db842b213b433bb6377e3412901750d1b..ea539f3d3352c64b58498e317b80785e7f1b3acb 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Cruncher\Filter\BaseCruncherFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -68,7 +68,7 @@ class CruncherWelcomeTeaserFilter extends BaseCruncherFilter implements Filterab
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get node instance
-               $cruncherInstance = GenericRegistry::getRegistry()->getInstance('cruncher');
+               $cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
 
                // Now output the teaser
                $cruncherInstance->outputConsoleTeaser();
index 82f2cef8b4b14809951197917068736fd4660d04..49b38351102a753ee25a6b933ca0206aa462edb2 100644 (file)
@@ -10,7 +10,7 @@ use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filter\Filterable;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
index 8f07a7f73003c27bfd488f0d4d6eb1ef2fe7a5cd..54b3c6bdf3921ec72541586dfa4ae1fdaf298b95 100644 (file)
@@ -4,7 +4,7 @@ namespace Org\Shipsimu\Hub\Miner\Filter\WelcomeTeaser;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -68,7 +68,7 @@ class MinerWelcomeTeaserFilter extends BaseMinerFilter implements Filterable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get node instance
-               $minerInstance = GenericRegistry::getRegistry()->getInstance('miner');
+               $minerInstance = ObjectRegistry::getRegistry('hub')->getInstance('miner');
 
                // Now output the teaser
                $minerInstance->outputConsoleTeaser();
index 000943cc0d99508c3e5a05d87775d90572f05115..c4f0da3498cc7ce1d7309bba1201e2ebd49a3d11 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\AptProxy\Filter\BaseAptProxyFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -69,7 +69,7 @@ class AptProxyShutdownFilter extends BaseAptProxyFilter implements Filterable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get node instance
-               $proxyInstance = GenericRegistry::getRegistry()->getInstance('apt_proxy');
+               $proxyInstance = ObjectRegistry::getRegistry('hub')->getInstance('apt_proxy');
 
                // Shutdown the apt-proxy. This should be the last line
                $proxyInstance->doShutdown();
index a56783256851441585c404ce15dfcf6e84f877fa..2b8587f0779fa4aabaae274dce05c098786744c8 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Chat\Filter\BaseChatFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -69,7 +69,7 @@ class ChatShutdownFilter extends BaseChatFilter implements Filterable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get node instance
-               $chatInstance = GenericRegistry::getRegistry()->getInstance('chat');
+               $chatInstance = ObjectRegistry::getRegistry('hub')->getInstance('chat');
 
                // Shutdown the chat. This should be the last line
                $chatInstance->doShutdown();
index ad9f3dd8351b16424e1cdfa71a239383b202f12d..cee9f5ab46e5a97cf2e6d3273d4202fe445990cb 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Crawler\Filter\BaseCrawlerFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -69,7 +69,7 @@ class CrawlerShutdownFilter extends BaseCrawlerFilter implements Filterable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get node instance
-               $crawlerInstance = GenericRegistry::getRegistry()->getInstance('crawler');
+               $crawlerInstance = ObjectRegistry::getRegistry('hub')->getInstance('crawler');
 
                // Shutdown the crawler. This should be the last line
                $crawlerInstance->doShutdown();
index 0484924725a828dc97bb5b50e8557648f2e04ca8..8df755a38cd778570965e1094d2e61b890a26d2b 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Cruncher\Filter\BaseCruncherFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -69,7 +69,7 @@ class CruncherShutdownFilter extends BaseCruncherFilter implements Filterable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get node instance
-               $cruncherInstance = GenericRegistry::getRegistry()->getInstance('cruncher');
+               $cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
 
                // Shutdown the cruncher. This should be the last line
                $cruncherInstance->doShutdown();
index 1d82696390cabf0998112a271695883a8380cde2..483f37e047eb6136d87bd4eaf53c6356438a1dd1 100644 (file)
@@ -4,7 +4,7 @@ namespace Org\Shipsimu\Hub\Filter\Shutdown\Miner;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -69,7 +69,7 @@ class MinerShutdownFilter extends BaseMinerFilter implements Filterable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get node instance
-               $minerInstance = GenericRegistry::getRegistry()->getInstance('miner');
+               $minerInstance = ObjectRegistry::getRegistry('hub')->getInstance('miner');
 
                // Shutdown the miner. This should be the last line
                $minerInstance->doShutdown();
index 97b8b29f2626c6b898c34f75586dc0d82ee5fb5b..2c5d3c06cf3bde9f3ba1c927d89c9ebae2270fc7 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -68,7 +68,7 @@ class NodeShutdownTaskHandlerFilter extends BaseNodeFilter implements Filterable
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get task handler instance
-               $handlerInstance = GenericRegistry::getRegistry()->getInstance('task_handler');
+               $handlerInstance = ObjectRegistry::getRegistry('generic')->getInstance('task_handler');
 
                // Shutdown the task manager and all its registered tasks
                $handlerInstance->doShutdown();
index b41d4f91ca37754a3204653013c1677f95e741d7..3963a731d8cf23b64b4c8c3e2a56213e13497c5c 100644 (file)
@@ -8,7 +8,7 @@ use Org\Shipsimu\Hub\AptProxy\Filter\BaseAptProxyFilter;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -69,13 +69,13 @@ class AptProxyTaskHandlerInitializerFilter extends BaseAptProxyFilter implements
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get apt-proxy instance
-               //$chatInstance = GenericRegistry::getRegistry()->getInstance('chat');
+               //$chatInstance = ObjectRegistry::getRegistry('hub')->getInstance('chat');
 
                // Get a new task handler instance
                $handlerInstance = ObjectFactory::createObjectByConfiguredName('task_handler_class');
 
                // Put the task handler in registry
-               GenericRegistry::getRegistry()->addInstance('task_handler', $handlerInstance);
+               ObjectRegistry::getRegistry('generic')->addInstance('task_handler', $handlerInstance);
 
                /*
                 * Register all tasks:
index 49164f38ec501022aa44658ae4493bf2338b1c93..35ec83c678cf7e164ee328384389350cea42bfcf 100644 (file)
@@ -8,7 +8,7 @@ use Org\Shipsimu\Hub\Chat\Filter\BaseChatFilter;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -69,13 +69,13 @@ class ChatTaskHandlerInitializerFilter extends BaseChatFilter implements Filtera
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get chat instance
-               //$chatInstance = GenericRegistry::getRegistry()->getInstance('chat');
+               //$chatInstance = ObjectRegistry::getRegistry('hub')->getInstance('chat');
 
                // Get a new task handler instance
                $handlerInstance = ObjectFactory::createObjectByConfiguredName('task_handler_class');
 
                // Put the task handler in registry
-               GenericRegistry::getRegistry()->addInstance('task_handler', $handlerInstance);
+               ObjectRegistry::getRegistry('generic')->addInstance('task_handler', $handlerInstance);
 
                /*
                 * Register all tasks:
index cbb53b6de79ed6fc972d6750c894d0a78d426fe7..989e231b02dcf214d0e4717abde911362c798e6a 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Crawler\Filter\BaseCrawlerFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -79,7 +79,7 @@ abstract class BaseCrawlerTaskFilter extends BaseCrawlerFilter {
                $handlerInstance->registerTask('crawler_snippet_extractor', $taskInstance);
 
                // Add handler instance to registry
-               GenericRegistry::getRegistry()->addInstance('task_handler', $handlerInstance);
+               ObjectRegistry::getRegistry('hub')->addInstance('task_handler', $handlerInstance);
        }
 
 }
index a9d1d99763d161ff5095b5538d49866668c46b9c..c324c3796c02bf49fa92da034d866529741e1c34 100644 (file)
@@ -9,7 +9,7 @@ use Org\Shipsimu\Hub\Crawler\Filter\Task\BaseCrawlerTaskFilter;
 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -73,7 +73,7 @@ class CrawlerDistributedTaskHandlerInitializerFilter extends BaseCrawlerTaskFilt
                parent::execute($requestInstance, $responseInstance);
 
                // Get task handler instance
-               $handlerInstance = GenericRegistry::getRegistry()->getInstance('task_handler');
+               $handlerInstance = ObjectRegistry::getRegistry('generic')->getInstance('task_handler');
 
                /*
                 * Register all tasks for a distributed crawler:
index af6064e59e41eadd8c8cea929e7aa17e37df2245..8b867f669f2722d26e7725da3d9c5a34b2d60010 100644 (file)
@@ -8,7 +8,7 @@ use Org\Shipsimu\Hub\Cruncher\Filter\BaseCruncherFilter;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -69,13 +69,13 @@ class CruncherTaskHandlerInitializerFilter extends BaseCruncherFilter implements
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get cruncher instance
-               //$cruncherInstance = GenericRegistry::getRegistry()->getInstance('cruncher');
+               //$cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
 
                // Get a new task handler instance
                $handlerInstance = ObjectFactory::createObjectByConfiguredName('task_handler_class');
 
                // Put the task handler in registry
-               GenericRegistry::getRegistry()->addInstance('task_handler', $handlerInstance);
+               ObjectRegistry::getRegistry('generic')->addInstance('task_handler', $handlerInstance);
 
                // Register all tasks:
                //
index 768f0456820932611b92f5de30e49cc8b9c29f7e..204c33220be97b84a5c7f9196460c0333c165968 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Shipsimu\Hub\Filter\Initializer\Miner\Handler\Task;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -69,13 +69,13 @@ class MinerTaskHandlerInitializerFilter extends BaseMinerFilter implements Filte
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get miner instance
-               //$minerInstance = GenericRegistry::getRegistry()->getInstance('miner');
+               //$minerInstance = ObjectRegistry::getRegistry('hub')->getInstance('miner');
 
                // Get a new task handler instance
                $handlerInstance = ObjectFactory::createObjectByConfiguredName('task_handler_class');
 
                // Put the task handler in registry
-               GenericRegistry::getRegistry()->addInstance('task_handler', $handlerInstance);
+               ObjectRegistry::getRegistry('generic')->addInstance('task_handler', $handlerInstance);
 
                // Register all tasks:
                //
index fa76173266aca6c135b476ed04baf9cbc7f2309b..a091527b4dbdc2e8bdb8aa26d809e55b8dabda5d 100644 (file)
@@ -9,7 +9,7 @@ use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -77,7 +77,7 @@ class NodeTaskHandlerInitializerFilter extends BaseNodeFilter implements Filtera
                $handlerInstance = ObjectFactory::createObjectByConfiguredName('task_handler_class');
 
                // Put the task handler in registry
-               GenericRegistry::getRegistry()->addInstance('task_handler', $handlerInstance);
+               ObjectRegistry::getRegistry('generic')->addInstance('task_handler', $handlerInstance);
 
                // Prepare a package-tags initialization task for the listeners
                $taskInstance = ObjectFactory::createObjectByConfiguredName('node_package_tags_init_task_class');
index a877e425380ac108f3ead9778724094c806c789e..83be391eee5404438dfa99ff9a6e34d365a9f84d 100644 (file)
@@ -14,7 +14,7 @@ use Org\Shipsimu\Hub\Template\Engine\Xml\Answer\Announcement\XmlAnnouncementAnsw
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
@@ -88,7 +88,7 @@ class NodeAnnouncementAnswerOkayHandler extends BaseAnswerStatusHandler implemen
                DhtObjectFactory::createDhtInstance('node')->registerNodeByMessageInstance($messageInstance, $this, TRUE);
 
                // Get handler instance
-               $handlerInstance = GenericRegistry::getRegistry()->getInstance('task_handler');
+               $handlerInstance = ObjectRegistry::getRegistry('generic')->getInstance('task_handler');
 
                // Generate DHT bootstrap task
                $taskInstance = ObjectFactory::createObjectByConfiguredName('node_dht_late_bootstrap_task_class');
index c7cba6df0ce09d8ce0b6712d407899a4a45b16ad..849f1fd7905d9f090796fa3c77a4063bb89b2a7b 100644 (file)
@@ -40,7 +40,7 @@ use Org\Mxchange\CoreFramework\Feature\FrameworkFeature;
 use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Generic\NullPointerException;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Socket\InvalidSocketException;
 use Org\Mxchange\CoreFramework\State\UnexpectedStateException;
@@ -675,7 +675,7 @@ class NetworkPackageHandler extends BaseHubHandler implements Deliverable, Recei
 
                // Get the connection helper from registry
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE-HANDLER: Getting helperInstance for connection from registry ...');
-               $helperInstance = GenericRegistry::getRegistry()->getInstance('connection');
+               $helperInstance = ObjectRegistry::getRegistry('hub')->getInstance('connection');
 
                // Get connection info class
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('NETWORK-PACKAGE-HANDLER: stateInstance=%s', $helperInstance->getStateInstance()));
index 2b2029e65070333a4469773b3913316ff2f288fd..ef09ecf880d771e1cf6e5a3f82fe9a879ebd7dc3 100644 (file)
@@ -20,7 +20,7 @@ use Org\Shipsimu\Hub\Traits\Fragmenter\FragmentableTrait;
 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\EntryPoint\ApplicationEntryPoint;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Traits\Stream\Output\OutputStreamTrait;
 use Org\Mxchange\CoreFramework\Traits\State\StateableTrait;
@@ -118,7 +118,7 @@ abstract class BaseConnectionHelper extends BaseHubSystemHelper implements Visit
                $this->setPackageHandlerInstance($handlerInstance);
 
                // Register this connection helper
-               GenericRegistry::getRegistry()->addInstance('connection', $this);
+               ObjectRegistry::getRegistry('hub')->addInstance('connection', $this);
 
                // Get the fragmenter instance
                $fragmenterInstance = FragmenterFactory::createFragmenterInstance('package');
index 64a349fe480a533ff95752af7ab9d40464533e5e..fb7660871473c0c10ff14bcfb64795f1daf61b29 100644 (file)
@@ -13,7 +13,7 @@ use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Database\Updateable;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Traits\State\StateableTrait;
 
 /**
@@ -98,7 +98,7 @@ abstract class BaseHubMiner extends BaseHubSystem implements Updateable {
         */
        private function initMiner () {
                // Add own instance to registry
-               GenericRegistry::getRegistry()->addInstance('miner', $this);
+               ObjectRegistry::getRegistry('hub')->addInstance('miner', $this);
 
                // Init the state
                MinerStateFactory::createMinerStateInstanceByName('init');
index b0c783306cccef304f37bc1735429d4d4d12d5b6..4c28cdc9347236125680fc7cf35119b2aee800e4 100644 (file)
@@ -12,7 +12,7 @@ use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Handler\Task\HandleableTask;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
index fa4aaf9f8c4f4fb5e78e86de16fe9f95e95e511a..706e2b5e5355387824b656498e191b85d8797d19 100644 (file)
@@ -30,7 +30,7 @@ use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Generic\NullPointerException;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 use Org\Mxchange\CoreFramework\Result\Search\SearchableResult;
@@ -157,7 +157,7 @@ abstract class BaseHubNode extends BaseHubSystem implements Updateable, AddableC
                $this->setCryptoInstance($cryptoInstance);
 
                // Set the node instance in registry
-               GenericRegistry::getRegistry()->addInstance('node', $this);
+               ObjectRegistry::getRegistry('hub')->addInstance('node', $this);
 
                // Init state which sets the state to 'init'
                $this->initState();
@@ -640,7 +640,7 @@ abstract class BaseHubNode extends BaseHubSystem implements Updateable, AddableC
                }
 
                // Get the controller here
-               $controllerInstance = GenericRegistry::getRegistry()->getInstance('controller');
+               $controllerInstance = ObjectRegistry::getRegistry('hub')->getInstance('controller');
 
                // Run all filters for the hub activation
                $controllerInstance->executeActivationFilters($requestInstance, $responseInstance);
index cff6f9a2ca70658a35ee7da7d04c571196b037d8..f4a05b3dc6012dc3b0d6168f48403144f6bb8cb7 100644 (file)
@@ -11,7 +11,7 @@ use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Handler\Task\HandleableTask;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
index e2a8a8e8d4ee65ef2386a642d7d3442fd048e021..71c6bc9b49a1dc64456546189409a19250a4be1e 100644 (file)
@@ -11,7 +11,7 @@ use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Handler\Task\HandleableTask;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
index 6aed54450512f1dc2a43d380416e33d64f2ff7e9..62ec1fd2334f153e7dea224f13bffca58b03a2b8 100644 (file)
@@ -11,7 +11,7 @@ use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Handler\Task\HandleableTask;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
index c5000c8d78de23d64a56430ced614171d783a1e6..59eaa48dd15f58d312fe39fcbc2b9c2fb31fdbef 100644 (file)
@@ -10,7 +10,7 @@ use Org\Shipsimu\Hub\Traits\Listener\ListenableTrait;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Visitor\Visitable;
 use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
@@ -137,15 +137,15 @@ abstract class BasePool extends BaseHubSystem implements Poolable, Visitable {
                $visitorInstance->visitPool($this);
 
                // Do we have a registry instance for this visitor's iterator?
-               if (GenericRegistry::getRegistry()->instanceExists($visitorInstance->getVisitorMode() . '_pool_iterator')) {
+               if (ObjectRegistry::getRegistry('hub')->instanceExists($visitorInstance->getVisitorMode() . '_pool_iterator')) {
                        // Get the instance from registry
-                       $iteratorInstance = GenericRegistry::getRegistry()->getInstance($visitorInstance->getVisitorMode() . '_pool_iterator');
+                       $iteratorInstance = ObjectRegistry::getRegistry('hub')->getInstance($visitorInstance->getVisitorMode() . '_pool_iterator');
                } else {
                        // Get a new iterator instance
                        $iteratorInstance = ObjectFactory::createObjectByConfiguredName($visitorInstance->getVisitorMode() . '_pool_iterator_class', array($this->getPoolEntriesInstance()));
 
                        // Add it to the registry
-                       GenericRegistry::getRegistry()->addInstance($visitorInstance->getVisitorMode() . '_pool_iterator', $iteratorInstance);
+                       ObjectRegistry::getRegistry('hub')->addInstance($visitorInstance->getVisitorMode() . '_pool_iterator', $iteratorInstance);
                }
 
                // Is it valid?
index 38a54394591f3734f5155ea381c1b0ae3783370d..de83e7b419541b92f40e1e9b6253b8466e0a2287 100644 (file)
@@ -6,7 +6,7 @@ namespace Org\Shipsimu\Hub\Producer\Cruncher;
 use Org\Shipsimu\Hub\Producer\BaseProducer;
 
 // Import framework stuff
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A generic cruncher producer class
@@ -42,7 +42,7 @@ abstract class BaseCruncherProducer extends BaseProducer {
                parent::__construct($className);
 
                // Get cruncher instance
-               $cruncherInstance = GenericRegistry::getRegistry()->getInstance('cruncher');
+               $cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
 
                // Change state to next state
                $cruncherInstance->blockProducerHasInitialized($this);
index d09e18b879fedec79978ec87d4137d0c2936094f..2e74165db11ce2f0164cdea62b432f0e5695c42f 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Miner\Minable;
 use Org\Shipsimu\Hub\Producer\BaseProducer;
 
 // Import framework stuff
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A generic miner producer class
@@ -49,7 +49,7 @@ abstract class BaseMinerProducer extends BaseProducer {
                parent::__construct($className);
 
                // Get miner instance
-               $minerInstance = GenericRegistry::getRegistry()->getInstance('miner');
+               $minerInstance = ObjectRegistry::getRegistry('hub')->getInstance('miner');
 
                // Change state to next state
                $minerInstance->blockProducerHasInitialized($this);
index 34ebcc928840eb768f636f903cb86819532d3e60..6e60a2a326e8c4949e82f006ac1e974c05271328 100644 (file)
@@ -17,7 +17,7 @@ use Org\Shipsimu\Hub\Template\Engine\Xml\ObjectRegistry\XmlObjectRegistryTemplat
 use Org\Mxchange\CoreFramework\EntryPoint\ApplicationEntryPoint;
 use Org\Mxchange\CoreFramework\Factory\Template\XmlTemplateEngineFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A Package tags class
index 2b0c2da9d95160eb5d55f62e29a50413c01d2669..bc16f337aec2c6b1bbad268dcf639a96c538a4e1 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Factory\Communicator\CommunicatorFactory;
 use Org\Shipsimu\Hub\Task\BaseHubTask;
 
 // Import framework stuff
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Task\BaseTask;
 use Org\Mxchange\CoreFramework\Task\Taskable;
 use Org\Mxchange\CoreFramework\Visitor\Visitable;
@@ -81,7 +81,7 @@ class CrawlerNodeCommunicatorTask extends BaseHubTask implements Taskable, Visit
                $communicatorInstance = CommunicatorFactory::createCommunicatorInstance('crawler_node_communicator_class', 'node');
 
                // Get the current crawler state from registry
-               $stateInstance = GenericRegistry::getRegistry()->getInstance('crawler')->getStateInstance();
+               $stateInstance = ObjectRegistry::getRegistry('hub')->getInstance('crawler')->getStateInstance();
 
                // Debug message
                /* DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CRAWLER-NODE-COMMUNICATOR-TASK: Executing stateInstance=' . $stateInstance->__toString());
index 9512050d8673fc9a6bb65a9ce945ca430b0e8aa1..5bc79f48ce6e3c0707d735a92687d35ba8ddb8a4 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Factory\Producer\ProducerFactory;
 use Org\Shipsimu\Hub\Task\BaseHubTask;
 
 // Import framework stuff
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Task\BaseTask;
 use Org\Mxchange\CoreFramework\Task\Taskable;
 use Org\Mxchange\CoreFramework\Visitor\Visitable;
@@ -80,7 +80,7 @@ class CruncherKeyProducerTask extends BaseHubTask implements Taskable, Visitable
                $producerInstance = ProducerFactory::createProducerInstance('cruncher_key_producer_class', 'key');
 
                // Get the current cruncher state from registry
-               $stateInstance = GenericRegistry::getRegistry()->getInstance('cruncher')->getStateInstance();
+               $stateInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher')->getStateInstance();
 
                // Debug message
                /* DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CRUNCHER-KEY-PRODUCER-TASK: Executing stateInstance=' . $stateInstance->__toString());
index 42221e29c0750f9dce5ad3c14a65f12c22af2eaf..ddad57dde70a2e73cacc86fc5ce51c4d9e88e866 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Factory\Producer\ProducerFactory;
 use Org\Shipsimu\Hub\Task\BaseHubTask;
 
 // Import framework stuff
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Task\BaseTask;
 use Org\Mxchange\CoreFramework\Task\Taskable;
 use Org\Mxchange\CoreFramework\Visitor\Visitable;
@@ -80,7 +80,7 @@ class CruncherTestUnitProducerTask extends BaseHubTask implements Taskable, Visi
                $producerInstance = ProducerFactory::createProducerInstance('cruncher_test_unit_producer_class', 'test_unit');
 
                // Get the current cruncher state from registry
-               $stateInstance = GenericRegistry::getRegistry()->getInstance('cruncher')->getStateInstance();
+               $stateInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher')->getStateInstance();
 
                // Debug message
                /* DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CRUNCHER-TEST-UNIT-PRODUCER-TASK: Executing stateInstance=' . $stateInstance->__toString());
index 41e272f00be221be10735c68d6ab0cd28156f31e..22c1da6bda1b100b0f666aff483d91d09a3141f8 100644 (file)
@@ -6,7 +6,7 @@ namespace Org\Shipsimu\Hub\Cruncher\Task\Fetcher\WorkUnit;
 use Org\Shipsimu\Hub\Task\BaseHubTask;
 
 // Import framework stuff
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Task\BaseTask;
 use Org\Mxchange\CoreFramework\Task\Taskable;
 use Org\Mxchange\CoreFramework\Visitor\Visitable;
@@ -85,7 +85,7 @@ class CruncherWorkUnitFetcherTask extends BaseHubTask implements Taskable, Visit
                 *
                 * Please report any bugs you encounter to me.
                 */
-               GenericRegistry::getRegistry()->getInstance('cruncher')->doFetchWorkUnits();
+               ObjectRegistry::getRegistry('hub')->getInstance('cruncher')->doFetchWorkUnits();
        }
 
        /**
index 986d4b782e1031b5b6e23dab4563bab0b6674a00..bf48d45c7f17d49ee7b32aefad52c38590ec76ca 100644 (file)
@@ -6,7 +6,7 @@ namespace Org\Shipsimu\Hub\Miner\Task\Fetcher\Block;
 use Org\Shipsimu\Hub\Task\BaseHubTask;
 
 // Import framework stuff
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Task\BaseTask;
 use Org\Mxchange\CoreFramework\Task\Taskable;
 use Org\Mxchange\CoreFramework\Visitor\Visitable;
@@ -85,7 +85,7 @@ class MinerBlockFetcherTask extends BaseHubTask implements Taskable, Visitable {
                 *
                 * Please report any bugs you encounter to me.
                 */
-               GenericRegistry::getRegistry()->getInstance('miner')->doSearchForBlocks();
+               ObjectRegistry::getRegistry('hub')->getInstance('miner')->doSearchForBlocks();
        }
 
        /**
index 2f69670712c4ce41a7f14e302f86758ae9156b52..d323429916cd7bc13969694bfd61959933d4209c 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Factory\Producer\ProducerFactory;
 use Org\Shipsimu\Hub\Task\BaseHubTask;
 
 // Import framework stuff
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Task\BaseTask;
 use Org\Mxchange\CoreFramework\Task\Taskable;
 use Org\Mxchange\CoreFramework\Visitor\Visitable;
@@ -80,7 +80,7 @@ class MinerRealGenesisBlockProducerTask extends BaseHubTask implements Taskable,
                $producerInstance = ProducerFactory::createProducerInstance('miner_real_genesis_block_producer_class', 'real_unit');
 
                // Get the current miner state from registry
-               $stateInstance = GenericRegistry::getRegistry()->getInstance('miner')->getStateInstance();
+               $stateInstance = ObjectRegistry::getRegistry('hub')->getInstance('miner')->getStateInstance();
 
                // Debug message
                /* DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('MINER-GENESIS-BLOCK-PRODUCER-TASK: Executing stateInstance=' . $stateInstance->__toString());
index 46bc62816f957f6189882828ee831dfd71f4c777..26ad2e2a13874c552ce726d4d1e139e10358a461 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Factory\Producer\ProducerFactory;
 use Org\Shipsimu\Hub\Task\BaseHubTask;
 
 // Import framework stuff
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Task\BaseTask;
 use Org\Mxchange\CoreFramework\Task\Taskable;
 use Org\Mxchange\CoreFramework\Visitor\Visitable;
@@ -80,7 +80,7 @@ class MinerTestGenesisBlockProducerTask extends BaseHubTask implements Taskable,
                $producerInstance = ProducerFactory::createProducerInstance('miner_test_genesis_block_producer_class', 'test_unit');
 
                // Get the current miner state from registry
-               $stateInstance = GenericRegistry::getRegistry()->getInstance('miner')->getStateInstance();
+               $stateInstance = ObjectRegistry::getRegistry('hub')->getInstance('miner')->getStateInstance();
 
                // Debug message
                /* DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('MINER-TEST-GENESIS-BLOCK-PRODUCER-TASK: Executing stateInstance=' . $stateInstance->__toString());
index b8bd65388268c6c92c21000944743cc1f4d7f90d..077e751aabfca59323c1b787981255fde1b3b40a 100644 (file)
@@ -7,7 +7,7 @@ use Org\Shipsimu\Hub\Factory\Registry\Object\ObjectTypeRegistryFactory;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Template\Engine\Xml\BaseXmlTemplateEngine;
 use Org\Mxchange\CoreFramework\Template\Xml\CompileableXmlTemplate;
diff --git a/core b/core
index bfe1b8bbcc74881eb34f03922f29c6e2d642bc6b..d80aa06027f7eafcabc7c5e307d2126456a6dc0a 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit bfe1b8bbcc74881eb34f03922f29c6e2d642bc6b
+Subproject commit d80aa06027f7eafcabc7c5e307d2126456a6dc0a