public class ToolsLocator extends AbstractLocator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BOOKMARKSANDHISTORY_MANAGER_NAME |
static java.lang.String |
COMPLEMENTS_MANAGER_NAME |
static java.lang.String |
DATATYPES_MANAGER_NAME |
static java.lang.String |
DISPOSABLE_MANAGER_NAME |
static java.lang.String |
DYNOBJECT_MANAGER_NAME |
static java.lang.String |
FIREWALL_MANAGER_NAME |
static java.lang.String |
FOLDERS_MANAGER_NAME |
static java.lang.String |
I18N_MANAGER_NAME |
static java.lang.String |
IDENTITY_MANAGER_NAME |
static java.lang.String |
OPERATION_MANAGER_NAME |
static java.lang.String |
PACKAGE_MANAGER_NAME |
static java.lang.String |
PERSISTENCE_MANAGER_NAME |
static java.lang.String |
SCRIPT_MANAGER_NAME |
static java.lang.String |
SERVICE_LOADER_NAME |
static java.lang.String |
TASKSTATUS_MANAGER_NAME |
Modifier and Type | Method and Description |
---|---|
static BookmarksAndHistoryManager |
getBookmarksAndHistoryManager()
Return a reference to
BookmarksAndHistoryManager . |
static ComplementsManager |
getComplementsManager() |
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 FoldersManager |
getFoldersManager()
Return a reference to
FoldersManager . |
static I18nManager |
getI18nManager()
Return a reference to
I18nManager . |
static SimpleIdentityManager |
getIdentityManager()
Return a reference to
SimpleIdentityManager . |
static ToolsLocator |
getInstance()
Return the singleton instance.
|
java.lang.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 . |
java.lang.String |
getXmlPullParserFactoryClassNames()
Returns the comma separated list of XmlPullParserFactory, XmlPullParser
or XmlSerializer implementations to be used.
|
static void |
initializeLibraries() |
static void |
initializeLibraries(java.lang.ClassLoader classLoader,
boolean ignoreerrors) |
static void |
registerBookmarksAndHistoryManager(java.lang.Class clazz)
Registers the Class implementing the
BookmarksAndHistoryManager
interface. |
static void |
registerComplementsManager(java.lang.Class clazz) |
static void |
registerDataTypesManager(java.lang.Class clazz)
Registers the Class implementing the DataTypesManager interface.
|
static void |
registerDefaultBookmarksAndHistoryManager(java.lang.Class clazz)
Registers the default Class implementing the BookmarksAndHistoryManager interface.
|
static void |
registerDefaultDataTypesManager(java.lang.Class clazz)
Registers the default Class implementing the DataTypesManager interface.
|
static void |
registerDefaultFirewallManager(java.lang.Class clazz)
Registers the default Class implementing the FirewallManager interface.
|
static void |
registerDefaultFoldersManager(java.lang.Class clazz)
Registers the default Class implementing the FoldersManager interface.
|
static void |
registerDefaultI18nManager(java.lang.Class clazz)
Registers the default Class implementing the
I18nManager
interface. |
static void |
registerDefaultIdentityManager(java.lang.Class clazz)
Registers the default Class implementing the
SimpleIdentityManager interface. |
static void |
registerDefaultOperationManager(java.lang.Class clazz) |
static void |
registerDefaultPackageManager(java.lang.Class clazz)
Registers the default Class implementing the
PackageManager
interface. |
static void |
registerDefaultPersistenceManager(java.lang.Class clazz) |
static void |
registerDefaultScriptManager(java.lang.Class clazz)
Registers the default Class implementing the
ScriptManager
interface. |
static void |
registerDefaultTaskStatusManager(java.lang.Class clazz)
Registers the default Class implementing the
TaskStatusManager
interface. |
static void |
registerDefaultToolsLibraries() |
static void |
registerDisposableManager(java.lang.Class clazz)
Registers the Class implementing the DisposableManager interface.
|
static void |
registerDynObjectManager(java.lang.Class clazz)
Registers the Class implementing the DynObjectManager interface.
|
static void |
registerI18nManager(java.lang.Class clazz)
Registers the Class implementing the
I18nManager interface. |
static void |
registerIdentityManager(java.lang.Class clazz)
Registers the Class implementing the
SimpleIdentityManager
interface. |
static void |
registerOperationManager(java.lang.Class clazz)
Registers the Class implementing the OperationManager interface.
|
static void |
registerPackageManager(java.lang.Class clazz)
Registers the Class implementing the
PackageManager interface. |
static void |
registerPersistenceManager(java.lang.Class clazz)
Registers the Class implementing the PersistenceManager interface.
|
static void |
registerScriptManager(java.lang.Class clazz)
Registers the Class implementing the
ScriptManager interface. |
static void |
registerServiceLoader(java.lang.Class clazz)
Registers the Class implementing the
ServiceLoader interface. |
static void |
registerTaskStatusManager(java.lang.Class clazz)
Registers the Class implementing the
TaskStatusManager interface. |
void |
setXmlPullParserFactoryClassNames(java.lang.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 java.lang.String PERSISTENCE_MANAGER_NAME
public static final java.lang.String OPERATION_MANAGER_NAME
public static final java.lang.String DYNOBJECT_MANAGER_NAME
public static final java.lang.String DISPOSABLE_MANAGER_NAME
public static final java.lang.String DATATYPES_MANAGER_NAME
public static final java.lang.String SERVICE_LOADER_NAME
public static final java.lang.String I18N_MANAGER_NAME
public static final java.lang.String TASKSTATUS_MANAGER_NAME
public static final java.lang.String PACKAGE_MANAGER_NAME
public static final java.lang.String IDENTITY_MANAGER_NAME
public static final java.lang.String FIREWALL_MANAGER_NAME
public static final java.lang.String FOLDERS_MANAGER_NAME
public static final java.lang.String SCRIPT_MANAGER_NAME
public static final java.lang.String COMPLEMENTS_MANAGER_NAME
public static final java.lang.String BOOKMARKSANDHISTORY_MANAGER_NAME
public static ToolsLocator getInstance()
public java.lang.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(java.lang.Class clazz)
clazz
- implementing the PersistenceManager interfacepublic static void registerDefaultPersistenceManager(java.lang.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(java.lang.Class clazz)
clazz
- implementing the OperationManager interfacepublic static void registerDefaultOperationManager(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.Class clazz)
I18nManager
interface.clazz
- implementing the I18nManager
interfacepublic static void registerDefaultI18nManager(java.lang.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(java.lang.Class clazz)
ScriptManager
interface.clazz
- implementing the ScriptManager
interfacepublic static void registerDefaultScriptManager(java.lang.Class clazz)
ScriptManager
interface.clazz
- implementing the ScriptManager
interfacepublic static void registerDataTypesManager(java.lang.Class clazz)
clazz
- implementing the DataTypesManag
interfacepublic static void registerDefaultDataTypesManager(java.lang.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 java.lang.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(java.lang.String xmlPullParserFactoryClassNames)
xmlPullParserFactoryClassNames
- the comma separated list of
XmlPullParserFactory class namepublic static void registerTaskStatusManager(java.lang.Class clazz)
TaskStatusManager
interface.clazz
- implementing the TaskStatusManager
interfacepublic static void registerDefaultTaskStatusManager(java.lang.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(java.lang.Class clazz)
PackageManager
interface.clazz
- implementing the PackageManager
interfacepublic static void registerDefaultPackageManager(java.lang.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(java.lang.Class clazz)
SimpleIdentityManager
interface.clazz
- implementing the SimpleIdentityManager
interfacepublic static void registerDefaultIdentityManager(java.lang.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(java.lang.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 registerDefaultFoldersManager(java.lang.Class clazz)
clazz
- implementing the FirewallManager
interfacepublic static FoldersManager getFoldersManager() throws LocatorException
FoldersManager
.FoldersManager
LocatorException
- if there is no access to the class or the class
cannot be instantiatedLocator.get(String)
public static void registerDefaultBookmarksAndHistoryManager(java.lang.Class clazz)
clazz
- implementing the BookmarksAndHistoryManager
interfacepublic static void registerBookmarksAndHistoryManager(java.lang.Class clazz)
BookmarksAndHistoryManager
interface.clazz
- implementing the BookmarksAndHistoryManager
interfacepublic static BookmarksAndHistoryManager getBookmarksAndHistoryManager() throws LocatorException
BookmarksAndHistoryManager
.BookmarksAndHistoryManager
LocatorException
- if there is no access to the class or the class
cannot be instantiatedLocator.get(String)
public static void registerComplementsManager(java.lang.Class clazz)
public static ComplementsManager getComplementsManager() throws LocatorException
LocatorException
public static void registerDefaultToolsLibraries()
public static void initializeLibraries()
public static void initializeLibraries(java.lang.ClassLoader classLoader, boolean ignoreerrors)