namespace Org\Mxchange\CoreFramework\Factory\Client;
// Import framework stuff
+use Org\Mxchange\CoreFramework\Factory\BaseFactory;
use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
/**
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class ClientFactory extends ObjectFactory {
+class ClientFactory extends BaseFactory {
/**
* Protected constructor
*
$clientInstance->setSocketResource($socketResource);
} else {
// Generate object instance
- $clientInstance = self::createObjectByConfiguredName($registryKey, array($socketResource));
+ $clientInstance = ObjectFactory::createObjectByConfiguredName($registryKey, array($socketResource));
// Set it in registry for later re-use
GenericRegistry::getRegistry()->addInstance($registryKey, $clientInstance);
namespace Org\Mxchange\CoreFramework\Factory\Database\Frontend;
// Import framework stuff
+use Org\Mxchange\CoreFramework\Factory\BaseFactory;
use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class DatabaseFrontendFactory extends ObjectFactory {
+class DatabaseFrontendFactory extends BaseFactory {
/**
* Protected constructor
*
$frontendInstance = $registryInstance->getInstance($frontendName);
} else {
// Get the registry instance
- $frontendInstance = self::createObjectByConfiguredName($frontendName);
+ $frontendInstance = ObjectFactory::createObjectByConfiguredName($frontendName);
// Set the instance in registry for further use
$registryInstance->addInstance($frontendName, $frontendInstance);
namespace Org\Mxchange\CoreFramework\Factory\Stack\File;
// Import framework stuff
+use Org\Mxchange\CoreFramework\Factory\BaseFactory;
use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class FileStackIndexFactory extends ObjectFactory {
+class FileStackIndexFactory extends BaseFactory {
/**
* Protected constructor
*
$indexInstance = GenericRegistry::getRegistry()->getInstance($type . '_index');
} else {
// Get the handler instance
- $indexInstance = self::createObjectByConfiguredName($type . '_file_stack_index_class', array($infoInstance));
+ $indexInstance = ObjectFactory::createObjectByConfiguredName($type . '_file_stack_index_class', array($infoInstance));
// Add it to the registry
GenericRegistry::getRegistry()->addInstance($type . '_index', $indexInstance);
namespace Org\Mxchange\CoreFramework\Factory\Login;
// 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\Request\Requestable;
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class LoginFactory extends ObjectFactory {
+class LoginFactory extends BaseFactory {
/**
* Protected constructor
*
// Probe on member instance
try {
// Try to instance member login class
- $loginInstance = self::createObjectByConfiguredName('user_login_class');
+ $loginInstance = ObjectFactory::createObjectByConfiguredName('user_login_class');
// Test login
$loginInstance->testLogin($requestInstance);
} catch (UnexpectedGuestAccountException $e) {
// Then try guest login
- $loginInstance = self::createObjectByConfiguredName('guest_login_class');
+ $loginInstance = ObjectFactory::createObjectByConfiguredName('guest_login_class');
// Test login again
$loginInstance->testLogin($requestInstance);
namespace Org\Mxchange\CoreFramework\Factory\Registry\Socket;
// Import framework stuff
-use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
+use Org\Mxchange\CoreFramework\Factory\BaseFactory;
use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
/**
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class SocketRegistryFactory extends ObjectFactory {
+class SocketRegistryFactory extends BaseFactory {
/**
* Protected constructor
*
// Import framework stuff
use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
-use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
+use Org\Mxchange\CoreFramework\Factory\BaseFactory;
use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
// Import SPL stuff
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class FileStackFactory extends ObjectFactory {
+class FileStackFactory extends BaseFactory {
/**
* Protected constructor
*
$stackInstance = GenericRegistry::getRegistry()->getInstance($stackName . '_stack');
} else {
// Get the handler instance
- $stackInstance = self::createObjectByConfiguredName($prefix . '_' . $stackName . '_stack_class', array($fileInfoInstance, $prefix . '_' . $stackName));
+ $stackInstance = ObjectFactory::createObjectByConfiguredName($prefix . '_' . $stackName . '_stack_class', array($fileInfoInstance, $prefix . '_' . $stackName));
// Add it to the registry
GenericRegistry::getRegistry()->addInstance($stackName . '_stack', $stackInstance);
// Import framework stuff
use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
-use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
+use Org\Mxchange\CoreFramework\Factory\BaseFactory;
use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
use Org\Mxchange\CoreFramework\Request\Requestable;
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class UserFactory extends ObjectFactory {
+class UserFactory extends BaseFactory {
/**
* Protected constructor
*
namespace Org\Mxchange\CoreFramework\Factory\Template;
// Import framework stuff
-use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
+use Org\Mxchange\CoreFramework\Factory\BaseFactory;
use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
/**
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-class XmlTemplateEngineFactory extends ObjectFactory {
+class XmlTemplateEngineFactory extends BaseFactory {
/**
* Protected constructor
*