public class ControlSystemSupportRegistryBean extends Object implements ControlSystemSupportRegistry, DisposableBean, EnvironmentAware, SmartInitializingSingleton
ControlSystemSupportRegistry that can be used as
a Spring bean. This implementation automatically discovers control-system
supports on the class-path using the discovery mechanism provided by
FactoriesLoader in order to find implementations of
ControlSystemSupportFactory.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger
Logger for this class.
|
| Constructor and Description |
|---|
ControlSystemSupportRegistryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterSingletonsInstantiated() |
void |
destroy() |
ControlSystemSupport<?> |
getControlSystemSupport(String id)
Returns the control-system support with the specified identifier.
|
Collection<? extends ControlSystemSupport<?>> |
getControlSystemSupports()
Returns all control-system support modules registered with this registry.
|
boolean |
isAvailable()
Tells whether the registry is available (has been initialized and not
destroyed yet).
|
void |
setCassandraProvider(CassandraProvider cassandraProvider)
Sets the Cassandra provider that provides access to the Apache Cassandra
database.
|
void |
setEnvironment(Environment environment) |
public void afterSingletonsInstantiated()
afterSingletonsInstantiated in interface SmartInitializingSingletonpublic void destroy()
throws Exception
destroy in interface DisposableBeanExceptionpublic void setCassandraProvider(CassandraProvider cassandraProvider)
cassandraProvider - provider that provides a connection to the Apache Cassandra
database.public void setEnvironment(Environment environment)
setEnvironment in interface EnvironmentAwarepublic boolean isAvailable()
ControlSystemSupportRegistryisAvailable in interface ControlSystemSupportRegistrytrue if the registry is ready to provide
control-system supports, false otherwise.public ControlSystemSupport<?> getControlSystemSupport(String id)
ControlSystemSupportRegistryControlSystemSupport.getId() method.getControlSystemSupport in interface ControlSystemSupportRegistryid - identifier of the control-system support module.null
if the requested module has not been registered with this
registry.public Collection<? extends ControlSystemSupport<?>> getControlSystemSupports()
ControlSystemSupportRegistrygetControlSystemSupports in interface ControlSystemSupportRegistrynull.Copyright © 2011–2017 aquenos GmbH. All rights reserved.