public class ToolsLocator extends AbstractLocator
Modifier and Type | Field and Description |
---|---|
static String |
DATATYPES_MANAGER_NAME |
static String |
DISPOSABLE_MANAGER_NAME |
static String |
DYNOBJECT_MANAGER_NAME |
static String |
FIREWALL_MANAGER_NAME |
static String |
I18N_MANAGER_NAME |
static String |
IDENTITY_MANAGER_NAME |
static String |
OPERATION_MANAGER_NAME |
static String |
PACKAGE_MANAGER_NAME |
static String |
PERSISTENCE_MANAGER_NAME |
static String |
SCRIPT_MANAGER_NAME |
static String |
SERVICE_LOADER_NAME |
static String |
TASKSTATUS_MANAGER_NAME |
Modifier and Type | Method and Description |
---|---|
static DataTypesManager |
getDataTypesManager()
Return a reference to
DataTypesManager . |
static DisposableManager |
getDisposableManager()
Return a reference to DisposableManager.
|
static DynObjectManager |
getDynObjectManager()
Return a reference to DynObjectManager.
|
static ExtensionPointManager |
getExtensionPointManager() |
static FirewallConfiguration |
getFirewallManager()
Return a reference to
FirewallManager . |
static I18nManager |
getI18nManager()
Return a reference to
I18nManager . |
static SimpleIdentityManager |
getIdentityManager()
Return a reference to
SimpleIdentityManager . |
static ToolsLocator |
getInstance()
Return the singleton instance.
|
String |
getLocatorName()
Returns the name of the Locator, for registration, logging, and other
uses.
|
static OperationManager |
getOperationManager()
Return a reference to OperationManager.
|
static PackageManager |
getPackageManager()
Return a reference to
PackageManager . |
static PersistenceManager |
getPersistenceManager()
Return a reference to PersistenceManager.
|
static ScriptManager |
getScriptManager()
Return a reference to
ScriptManager . |
static ServiceLoader |
getServiceLoader()
Return a reference to
ServiceLoader . |
static TaskStatusManager |
getTaskStatusManager()
Return a reference to
TaskStatusManager . |
String |
getXmlPullParserFactoryClassNames()
Returns the comma separated list of XmlPullParserFactory, XmlPullParser
or XmlSerializer implementations to be used.
|
static void |
initializeLibraries() |
static void |
initializeLibraries(ClassLoader classLoader,
boolean ignoreerrors) |
static void |
registerDataTypesManager(Class clazz)
Registers the Class implementing the DataTypesManager interface.
|
static void |
registerDefaultDataTypesManager(Class clazz)
Registers the default Class implementing the DataTypesManager interface.
|
static void |
registerDefaultFirewallManager(Class clazz)
Registers the default Class implementing the FirewallManager interface.
|
static void |
registerDefaultI18nManager(Class clazz)
Registers the default Class implementing the
I18nManager
interface. |
static void |
registerDefaultIdentityManager(Class clazz)
Registers the default Class implementing the
SimpleIdentityManager interface. |
static void |
registerDefaultOperationManager(Class clazz) |
static void |
registerDefaultPackageManager(Class clazz)
Registers the default Class implementing the
PackageManager
interface. |
static void |
registerDefaultPersistenceManager(Class clazz) |
static void |
registerDefaultScriptManager(Class clazz)
Registers the default Class implementing the
ScriptManager
interface. |
static void |
registerDefaultTaskStatusManager(Class clazz)
Registers the default Class implementing the
TaskStatusManager
interface. |
static void |
registerDisposableManager(Class clazz)
Registers the Class implementing the DisposableManager interface.
|
static void |
registerDynObjectManager(Class clazz)
Registers the Class implementing the DynObjectManager interface.
|
static void |
registerI18nManager(Class clazz)
Registers the Class implementing the
I18nManager interface. |
static void |
registerIdentityManager(Class clazz)
Registers the Class implementing the
SimpleIdentityManager
interface. |
static void |
registerOperationManager(Class clazz)
Registers the Class implementing the OperationManager interface.
|
static void |
registerPackageManager(Class clazz)
Registers the Class implementing the
PackageManager interface. |
static void |
registerPersistenceManager(Class clazz)
Registers the Class implementing the PersistenceManager interface.
|
static void |
registerScriptManager(Class clazz)
Registers the Class implementing the
ScriptManager interface. |
static void |
registerServiceLoader(Class clazz)
Registers the Class implementing the
ServiceLoader interface. |
static void |
registerTaskStatusManager(Class clazz)
Registers the Class implementing the
TaskStatusManager interface. |
void |
setXmlPullParserFactoryClassNames(String xmlPullParserFactoryClassNames)
Sets a comma separated list of XmlPullParserFactory, XmlPullParser or
XmlSerializer implementations to be used.
|
exists, get, getNames, register, register, register, register, registerDefault, registerDefault, toString
public static final String PERSISTENCE_MANAGER_NAME
public static final String OPERATION_MANAGER_NAME
public static final String DYNOBJECT_MANAGER_NAME
public static final String DISPOSABLE_MANAGER_NAME
public static final String DATATYPES_MANAGER_NAME
public static final String SERVICE_LOADER_NAME
public static final String I18N_MANAGER_NAME
public static final String TASKSTATUS_MANAGER_NAME
public static final String PACKAGE_MANAGER_NAME
public static final String IDENTITY_MANAGER_NAME
public static final String FIREWALL_MANAGER_NAME
public static final String SCRIPT_MANAGER_NAME
public static ToolsLocator getInstance()
public String getLocatorName()
Locator
public static PersistenceManager getPersistenceManager() throws LocatorException
LocatorException
- if there is no access to the class or the class
cannot be instantiatedLocator.get(String)
public static void registerPersistenceManager(Class clazz)
clazz
- implementing the PersistenceManager interfacepublic static void registerDefaultPersistenceManager(Class clazz)
public static OperationManager getOperationManager() throws LocatorException
LocatorException
- if there is no access to the class or the class
cannot be instantiatedLocator.get(String)
public static void registerOperationManager(Class clazz)
clazz
- implementing the OperationManager interfacepublic static void registerDefaultOperationManager(Class clazz)
public static ExtensionPointManager getExtensionPointManager()
public static DynObjectManager getDynObjectManager() throws LocatorException
LocatorException
- if there is no access to the class or the class
cannot be instantiatedLocator.get(String)
public static void registerDynObjectManager(Class clazz)
clazz
- implementing the DynObjectManager
interfacepublic static DisposableManager getDisposableManager() throws LocatorException
DisposableManager
LocatorException
- if there is no access to the class or the class
cannot be instantiatedLocator.get(String)
public static void registerDisposableManager(Class clazz)
clazz
- implementing the DisposableManager
interfacepublic static ServiceLoader getServiceLoader() throws LocatorException
ServiceLoader
.ServiceLoader
LocatorException
- if there is no access to the class or the class
cannot be instantiatedLocator.get(String)
public static void registerServiceLoader(Class clazz)
ServiceLoader
interface.clazz
- implementing the ServiceLoader
interfacepublic static I18nManager getI18nManager() throws LocatorException
I18nManager
.I18nManager
LocatorException
- if there is no access to the class or the class
cannot be instantiatedLocator.get(String)
public static void registerI18nManager(Class clazz)
I18nManager
interface.clazz
- implementing the I18nManager
interfacepublic static void registerDefaultI18nManager(Class clazz)
I18nManager
interface.clazz
- implementing the I18nManager
interfacepublic static ScriptManager getScriptManager() throws LocatorException
ScriptManager
.ScriptManager
LocatorException
- if there is no access to the class or the class
cannot be instantiatedLocator.get(String)
public static void registerScriptManager(Class clazz)
ScriptManager
interface.clazz
- implementing the ScriptManager
interfacepublic static void registerDefaultScriptManager(Class clazz)
ScriptManager
interface.clazz
- implementing the ScriptManager
interfacepublic static void registerDataTypesManager(Class clazz)
clazz
- implementing the DataTypesManag
interfacepublic static void registerDefaultDataTypesManager(Class clazz)
clazz
- implementing the DataTypesManager
interfacepublic static DataTypesManager getDataTypesManager() throws LocatorException
DataTypesManager
.DataTypesManager
LocatorException
- if there is no access to the class or the class
cannot be instantiatedLocator.get(String)
public String getXmlPullParserFactoryClassNames()
This parameter must be passed to the XmlPullParserFactory
class
to get an instance of the factory with an available implementation. That
class will use the list to try to instance the classes included, and will
use the first one available in the list order.
Example getting an XmlPullParser
:
XmlPullParserFactory factory = XmlPullParserFactory.newInstance(ToolsLocator .getInstance().getXmlPullParserFactoryClassNames(), null); XmlPullParser xpp = factory.newPullParser();
Example getting an XmlSerializer
:
XmlPullParserFactory factory = XmlPullParserFactory.newInstance(ToolsLocator .getInstance().getXmlPullParserFactoryClassNames(), null); XmlSerializer serializer = factory.newSerializer();
XmlPullParserFactory#newInstance(String, Class).
public void setXmlPullParserFactoryClassNames(String xmlPullParserFactoryClassNames)
xmlPullParserFactoryClassNames
- the comma separated list of
XmlPullParserFactory class namepublic static void registerTaskStatusManager(Class clazz)
TaskStatusManager
interface.clazz
- implementing the TaskStatusManager
interfacepublic static void registerDefaultTaskStatusManager(Class clazz)
TaskStatusManager
interface.clazz
- implementing the TaskStatusManager
interfacepublic static TaskStatusManager getTaskStatusManager() throws LocatorException
TaskStatusManager
.TaskStatusManager
LocatorException
- if there is no access to the class or the class
cannot be instantiatedLocator.get(String)
public static void registerPackageManager(Class clazz)
PackageManager
interface.clazz
- implementing the PackageManager
interfacepublic static void registerDefaultPackageManager(Class clazz)
PackageManager
interface.clazz
- implementing the PackageManager
interfacepublic static PackageManager getPackageManager() throws LocatorException
PackageManager
.PackageManager
LocatorException
- if there is no access to the class or the class
cannot be instantiatedLocator.get(String)
public static void registerIdentityManager(Class clazz)
SimpleIdentityManager
interface.clazz
- implementing the SimpleIdentityManager
interfacepublic static void registerDefaultIdentityManager(Class clazz)
SimpleIdentityManager
interface.clazz
- implementing the SimpleIdentityManager
interfacepublic static SimpleIdentityManager getIdentityManager() throws LocatorException
SimpleIdentityManager
.SimpleIdentityManager
LocatorException
- if there is no access to the class or the class
cannot be instantiatedLocator.get(String)
public static void registerDefaultFirewallManager(Class clazz)
clazz
- implementing the FirewallManager
interfacepublic static FirewallConfiguration getFirewallManager() throws LocatorException
FirewallManager
.FirewallManager
LocatorException
- if there is no access to the class or the class
cannot be instantiatedLocator.get(String)
public static void initializeLibraries()
public static void initializeLibraries(ClassLoader classLoader, boolean ignoreerrors)