public class SpringComponent extends AbstractComponent<Scope>
Constructor and Description |
---|
SpringComponent(String aName,
String[] aConfigFiles,
Map<String,ProvidedInterface> aProvided,
Map<RequiredInterface,String> aRequired)
Constructs a spring system.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperties(Properties aProperties) |
void |
addProperties(String aBeanname,
Properties aProperties) |
protected Scope |
doStart(Scope aExternalScope)
Must be implemented for initializing the subsystem.
|
protected void |
doStop(Scope aRuntime) |
Properties |
getProperties(String aBeanname) |
void |
setProperty(String aKey,
String aValue)
Must be called to make a property available in the application context.
|
addContext, addInterface, addProvidedInterface, addRequiredInterface, findProvidedInterface, findRequiredInterface, getContext, getName, getProvidedInterfaces, getQualifiedName, getRequiredInterfaces, start, stop, toString
public SpringComponent(String aName, String[] aConfigFiles, Map<String,ProvidedInterface> aProvided, Map<RequiredInterface,String> aRequired)
aName
- Name of the system.aConfigFil
- Spring config files to read.aProvided
- Map of bean name to service descriptor describing the bean
names that the spring config files use for each required
service.aRequired
- Map of bean name to service descriptor describing the bean
names that the spring config files use for each required
service.public void setProperty(String aKey, String aValue)
aKey
- Property key.aValue
- Property value.public void addProperties(Properties aProperties)
public void addProperties(String aBeanname, Properties aProperties)
public Properties getProperties(String aBeanname)
protected Scope doStart(Scope aExternalScope)
AbstractComponent
AbstractComponent.addInterface(ProvidedInterface, Object, Scope)
for
each service that is started.doStart
in class AbstractComponent<Scope>
protected void doStop(Scope aRuntime)
doStop
in class AbstractComponent<Scope>
Copyright © 2022. All rights reserved.