]> git.mxchange.org Git - hub.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2020 00:30:05 +0000 (01:30 +0100)
committerRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2020 00:30:05 +0000 (01:30 +0100)
- REFACTURING: imported new traits, will have more in the future
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
application/hub/classes/helper/connection/class_BaseConnectionHelper.php
application/hub/classes/listener/class_BaseListener.php
application/hub/classes/package/assembler/class_PackageAssembler.php
application/hub/classes/producer/cruncher/keys/class_BaseKeyProducer.php
core

index 95fc8e3053ef692ff386685840c1b572092e7a19..3bfc8d1c25f108c13380d72c52523eb3680bf97b 100644 (file)
@@ -20,6 +20,7 @@ use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
 use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Traits\Stream\Output\OutputStreamTrait;
 use Org\Mxchange\CoreFramework\Visitor\Visitable;
 use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
@@ -46,6 +47,9 @@ use Org\Mxchange\CoreFramework\Visitor\Visitor;
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 abstract class BaseConnectionHelper extends BaseHubSystemHelper implements Visitable, Registerable {
+       // Load traits
+       use OutputStreamTrait;
+
        // Exception codes
        const EXCEPTION_UNSUPPORTED_ERROR_HANDLER = 0x9100;
 
index ba84a870d564d99751a3b8f2de1a8b78b9051e8b..cffcf73ec2201cae4990c8a3b28b6f70feb8573c 100644 (file)
@@ -24,6 +24,7 @@ use Org\Mxchange\CoreFramework\Handler\Handleable;
 use Org\Mxchange\CoreFramework\Registry\Register;
 use Org\Mxchange\CoreFramework\Socket\InvalidServerSocketException;
 use Org\Mxchange\CoreFramework\Socket\SocketAlreadyRegisteredException;
+use Org\Mxchange\CoreFramework\Traits\Iterator\IteratorTrait;
 use Org\Mxchange\CoreFramework\Visitor\Visitable;
 use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
@@ -54,6 +55,9 @@ use \LogicException;
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 abstract class BaseListener extends BaseHubSystem implements Visitable {
+       // Load traits
+       use IteratorTrait;
+
        // Exception code constants
        const EXCEPTION_SOCKET_ALREADY_REGISTERED        = 0xa01;
        const EXCEPTION_SOCKET_CREATION_FAILED           = 0xa02;
index 15a7095f63ae8fa34952deeabd69e7416b94ed56..8bcdfceb6d1c11b19f22649fc9758863198daf7b 100644 (file)
@@ -20,6 +20,7 @@ use Org\Mxchange\CoreFramework\Handler\Handleable;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Utils\String\StringUtils;
 use Org\Mxchange\CoreFramework\Stacker\Stackable;
+use Org\Mxchange\CoreFramework\Traits\Stream\Input\InputStreamTrait;
 use Org\Mxchange\CoreFramework\Visitor\Visitable;
 use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
@@ -50,6 +51,9 @@ use \BadMethodCallException;
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 class PackageAssembler extends BaseHubSystem implements Assembler, Registerable, Visitable {
+       // Load traits
+       use InputStreamTrait;
+
        /**
         * Name for stacker holding raw data of multiple messages
         */
index 644981e616b63119564e4e82f917c598e8326503..92f6ceeb44169b71c40e3b1ef950e0d9deb804e6 100644 (file)
@@ -5,6 +5,9 @@ namespace Org\Shipsimu\Hub\Producer\Cruncher\Key;
 // Import application-specific stuff
 use Org\Shipsimu\Hub\Producer\Cruncher\BaseCruncherProducer;
 
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Traits\Iterator\IteratorTrait;
+
 /**
  * A general KeyProducer class
  *
@@ -28,6 +31,9 @@ use Org\Shipsimu\Hub\Producer\Cruncher\BaseCruncherProducer;
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 abstract class BaseKeyProducer extends BaseCruncherProducer {
+       // Load traits
+       use IteratorTrait;
+
        /**
         * Protected constructor
         *
diff --git a/core b/core
index 977b9bbb804eda74ad2d819d1de082933dd0bb08..9a7a272f04e54537aaf30c282598c1742fe0ad88 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit 977b9bbb804eda74ad2d819d1de082933dd0bb08
+Subproject commit 9a7a272f04e54537aaf30c282598c1742fe0ad88