<?php
// Own namespace
-namespace CoreFramework\Factory\Template;
+namespace Org\Mxchange\CoreFramework\Factory\Template;
// Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
/**
* A factory class for XML template engines. All instances generated by this
*/
public static final function createXmlTemplateEngineInstance ($configEntry) {
// Do we have an instance in the registry?
- if (Registry::getRegistry()->instanceExists($configEntry)) {
+ if (GenericRegistry::getRegistry()->instanceExists($configEntry)) {
// Then use this instance
- $templateInstance = Registry::getRegistry()->getInstance($configEntry);
+ $templateInstance = GenericRegistry::getRegistry()->getInstance($configEntry);
} else {
// Now prepare the tags instance
$templateInstance = ObjectFactory::createObjectByConfiguredName($configEntry);
$templateInstance->enableXmlCompacting();
// Set the instance in registry for further use
- Registry::getRegistry()->addInstance($configEntry, $templateInstance);
+ GenericRegistry::getRegistry()->addInstance($configEntry, $templateInstance);
}
// Return the instance