@Component public class ConnectorRegistry extends Object
Constructor and Description |
---|
ConnectorRegistry() |
Modifier and Type | Method and Description |
---|---|
ConnectorCache |
getCache() |
Connector |
getConnector(Class<? extends Connector> cls)
Return the first connector with the given class or null if none was found
|
Connector |
getConnector(long connectorId)
Return a connector with the given id
|
List<ConnectorConfiguration> |
getConnectorConfigurations()
Returns a list of all connector configurations known to this registry
|
List<ConnectorConfiguration> |
getConnectorConfigurations(Class<? extends Connector> cls)
Returns a list of connector configurations for a given connector class
|
ConnectorConfiguration |
getConnectorDefinition(Class<? extends Connector> cls)
Returns the connector definition for the given connector class
or
null if no definition was found. |
List<ConnectorConfiguration> |
getConnectorDefinitions()
Return a list of default configurations
|
List<Connector> |
getConnectors()
Eagerly loads all connectors for which a connector
configuration is available and returns the connectors
|
void |
setConnectorCache(ConnectorCache cache) |
ConnectorStatus |
testConnectorConfiguration(ConnectorConfiguration config) |
ConnectorStatus |
testConnectorConfiguration(ConnectorConfiguration config,
String username,
String password) |
@Inject public void setConnectorCache(ConnectorCache cache)
public List<ConnectorConfiguration> getConnectorDefinitions()
public ConnectorConfiguration getConnectorDefinition(Class<? extends Connector> cls)
null
if no definition was found.cls
- public List<ConnectorConfiguration> getConnectorConfigurations()
public List<ConnectorConfiguration> getConnectorConfigurations(Class<? extends Connector> cls)
cls
- public Connector getConnector(Class<? extends Connector> cls)
cls
- public Connector getConnector(long connectorId)
connectorId
- CycleException
- if the connector is unavailablepublic ConnectorCache getCache()
public List<Connector> getConnectors()
public ConnectorStatus testConnectorConfiguration(ConnectorConfiguration config)
public ConnectorStatus testConnectorConfiguration(ConnectorConfiguration config, String username, String password)
Copyright © 2015. All rights reserved.