Class ConnectorInfoManagerFactoryImpl
- java.lang.Object
-
- org.identityconnectors.framework.api.ConnectorInfoManagerFactory
-
- org.identityconnectors.framework.impl.api.ConnectorInfoManagerFactoryImpl
-
public class ConnectorInfoManagerFactoryImpl extends ConnectorInfoManagerFactory
-
-
Constructor Summary
Constructors Constructor Description ConnectorInfoManagerFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearLocalCache()
Clears the local bundle manager cache.void
clearRemoteCache()
Clears the remote cache.ConnectorInfoManager
getLocalManager(URL... urls)
Creates theConnectorInfoManager
from a list of bundle URLs.ConnectorInfoManager
getLocalManager(List<URL> urls, ClassLoader bundleParentClassLoader)
ConnectorInfoManager
getRemoteManager(RemoteFrameworkConnectionInfo info)
Creates theConnectorInfoManager
for a remote framework.ConnectorInfoManager
getUnCheckedRemoteManager(RemoteFrameworkConnectionInfo info)
Creates theConnectorInfoManager
for a remote framework but the connection is not checked and not initialised.-
Methods inherited from class org.identityconnectors.framework.api.ConnectorInfoManagerFactory
getInstance
-
-
-
-
Method Detail
-
clearLocalCache
public void clearLocalCache()
Description copied from class:ConnectorInfoManagerFactory
Clears the local bundle manager cache. NOTE: Avoid using this method outside of unit testing.- Specified by:
clearLocalCache
in classConnectorInfoManagerFactory
-
clearRemoteCache
public void clearRemoteCache()
Description copied from class:ConnectorInfoManagerFactory
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.- Specified by:
clearRemoteCache
in classConnectorInfoManagerFactory
-
getLocalManager
public ConnectorInfoManager getLocalManager(URL... urls) throws ConfigurationException
Description copied from class:ConnectorInfoManagerFactory
Creates theConnectorInfoManager
from 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
ConnectorInfoManagerFactory.clearLocalCache()
.- Specified by:
getLocalManager
in classConnectorInfoManagerFactory
- 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.
-
getLocalManager
public ConnectorInfoManager getLocalManager(List<URL> urls, ClassLoader bundleParentClassLoader) throws ConfigurationException
- Throws:
ConfigurationException
-
getRemoteManager
public ConnectorInfoManager getRemoteManager(RemoteFrameworkConnectionInfo info) throws ConfigurationException
Description copied from class:ConnectorInfoManagerFactory
Creates theConnectorInfoManager
for a remote framework.NOTE: The results from this call are automatically cached and keyed by the RemoteFrameworkConnectionInfo passed in. To clear the cache, call
ConnectorInfoManagerFactory.clearRemoteCache()
.- Specified by:
getRemoteManager
in classConnectorInfoManagerFactory
- Parameters:
info
- The connection information.- Returns:
- The manager
- Throws:
ConfigurationException
-
getUnCheckedRemoteManager
public ConnectorInfoManager getUnCheckedRemoteManager(RemoteFrameworkConnectionInfo info)
Description copied from class:ConnectorInfoManagerFactory
Creates theConnectorInfoManager
for 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 theConnectorInfoManager
MUST implement theRunnable
to 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, callConnectorInfoManagerFactory.clearRemoteCache()
.- Specified by:
getUnCheckedRemoteManager
in classConnectorInfoManagerFactory
- Parameters:
info
- The connection information.- Returns:
- The manager
-
-