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 SmartInitializingSingleton
public void destroy() throws Exception
destroy
in interface DisposableBean
Exception
public void setCassandraProvider(CassandraProvider cassandraProvider)
cassandraProvider
- provider that provides a connection to the Apache Cassandra
database.public void setEnvironment(Environment environment)
setEnvironment
in interface EnvironmentAware
public boolean isAvailable()
ControlSystemSupportRegistry
isAvailable
in interface ControlSystemSupportRegistry
true
if the registry is ready to provide
control-system supports, false
otherwise.public ControlSystemSupport<?> getControlSystemSupport(String id)
ControlSystemSupportRegistry
ControlSystemSupport.getId()
method.getControlSystemSupport
in interface ControlSystemSupportRegistry
id
- identifier of the control-system support module.null
if the requested module has not been registered with this
registry.public Collection<? extends ControlSystemSupport<?>> getControlSystemSupports()
ControlSystemSupportRegistry
getControlSystemSupports
in interface ControlSystemSupportRegistry
null
.Copyright © 2011–2017 aquenos GmbH. All rights reserved.