Class ConnectorInfoManagerFactory
- java.lang.Object
-
- org.identityconnectors.framework.api.ConnectorInfoManagerFactory
-
public abstract class ConnectorInfoManagerFactory extends Object
An application's primary entry point into connectors. Allows an application to load the connector classes from a set of bundles.
-
-
Constructor Summary
Constructors Constructor Description ConnectorInfoManagerFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidclearLocalCache()Clears the local bundle manager cache.abstract voidclearRemoteCache()Clears the remote cache.static ConnectorInfoManagerFactorygetInstance()Returns the instance of this factory.abstract ConnectorInfoManagergetLocalManager(URL... urls)Creates theConnectorInfoManagerfrom a list of bundle URLs.abstract ConnectorInfoManagergetRemoteManager(RemoteFrameworkConnectionInfo info)Creates theConnectorInfoManagerfor a remote framework.abstract ConnectorInfoManagergetUnCheckedRemoteManager(RemoteFrameworkConnectionInfo info)Creates theConnectorInfoManagerfor a remote framework but the connection is not checked and not initialised.
-
-
-
Method Detail
-
getInstance
public static ConnectorInfoManagerFactory getInstance()
Returns the instance of this factory.- Returns:
- The instance of this factory
-
getLocalManager
public abstract ConnectorInfoManager getLocalManager(URL... urls)
Creates theConnectorInfoManagerfrom a list of bundle URLs.NOTE: The results from this call are automatically cached and keyed by the list of URLs passed in. To clear the cache, call
clearLocalCache().- Parameters:
urls- The list of bundle URLs. This list may consist of directories consisting of un-jarred bundles and/or bundle jars.- Returns:
- The manager
- Throws:
ConfigurationException- If there was any problem with any of the bundles.
-
getRemoteManager
public abstract ConnectorInfoManager getRemoteManager(RemoteFrameworkConnectionInfo info)
Creates theConnectorInfoManagerfor a remote framework.NOTE: The results from this call are automatically cached and keyed by the RemoteFrameworkConnectionInfo passed in. To clear the cache, call
clearRemoteCache().- Parameters:
info- The connection information.- Returns:
- The manager
- Throws:
RuntimeException- If there was any problem connecting
-
getUnCheckedRemoteManager
public abstract ConnectorInfoManager getUnCheckedRemoteManager(RemoteFrameworkConnectionInfo info)
Creates theConnectorInfoManagerfor a remote framework but the connection is not checked and not initialised.NOTICE: This method is an early specification of the Events API for 1.2.x.x version. Use carefully, this package may change before the final 1.2.0.0 release.
As now theConnectorInfoManagerMUST implement theRunnableto connect to the remote connector server. NOTE: The results from this call are automatically cached and keyed by the RemoteFrameworkConnectionInfo passed in. To clear the cache, callclearRemoteCache().- Parameters:
info- The connection information.- Returns:
- The manager
- Since:
- 1.2
-
clearLocalCache
public abstract void clearLocalCache()
Clears the local bundle manager cache. NOTE: Avoid using this method outside of unit testing.
-
clearRemoteCache
public abstract void clearRemoteCache()
Clears the remote cache. There should be an admin page function which exposes this method for the case where you drop in a new connector in the connector server and reset it.
-
-