com.evolveum.midpoint.provisioning.ucf.impl
Class ConnectorManagerIcfImpl

java.lang.Object
  extended by com.evolveum.midpoint.provisioning.ucf.impl.ConnectorManagerIcfImpl
All Implemented Interfaces:
ConnectorManager

@Component
public class ConnectorManagerIcfImpl
extends java.lang.Object
implements ConnectorManager

Currently the only implementation of the UCF Connector Manager API interface. It is hardcoded to ICF now. This class holds a list of all known ICF connectors in the system.

Author:
Radovan Semancik

Constructor Summary
ConnectorManagerIcfImpl()
           
 
Method Summary
 ConnectorInstance createConnectorInstance(ResourceType resource)
          Creates new connector instance.
 ConnectorType getConnector(java.lang.String oid)
          Returns a single XML representation of ICF connector.
 void initialize()
          Initialize the ICF implementation.
 java.util.Set<ConnectorType> listConnectors()
          Returns a list XML representation of the ICF connectors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorManagerIcfImpl

public ConnectorManagerIcfImpl()
Method Detail

initialize

@PostConstruct
public void initialize()
Initialize the ICF implementation. Look for all connector bundles, get basic information about them and keep that in memory.


createConnectorInstance

public ConnectorInstance createConnectorInstance(ResourceType resource)
                                          throws ObjectNotFoundException
Creates new connector instance. It will initialize the connector by taking the XML Resource definition, transforming it to the ICF configuration and applying that to the new connector instance.

Specified by:
createConnectorInstance in interface ConnectorManager
Parameters:
resource - resource definition
Returns:
configured and initialized connector instance
Throws:
ObjectNotFoundException

listConnectors

public java.util.Set<ConnectorType> listConnectors()
Returns a list XML representation of the ICF connectors.

Specified by:
listConnectors in interface ConnectorManager
Returns:
list of all known connectors.

getConnector

public ConnectorType getConnector(java.lang.String oid)
Returns a single XML representation of ICF connector.

Specified by:
getConnector in interface ConnectorManager
Returns:


Copyright © 2011 evolveum. All Rights Reserved.