|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.osgi.compendium.cm.ConfigAdminPropertiesFactoryBean
public class ConfigAdminPropertiesFactoryBean
FactoryBean returning the properties stored under a given persistent id in the ConfigurationAdmin service. Once retrieved, the properties will remain the same, even when the configuration object that it maps, changes. Note: This implementation performs a lazy initialization of the properties to receive the most up to date configuration.
Configuration,
ConfigurationAdmin,
PropertiesFactoryBean| Constructor Summary | |
|---|---|
ConfigAdminPropertiesFactoryBean()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
Object |
getObject()
|
Class |
getObjectType()
|
String |
getPersistentId()
Returns the persistentId. |
boolean |
isSingleton()
|
void |
setBundleContext(BundleContext bundleContext)
Set the BundleContext that this bean runs in. |
void |
setLocalOverride(boolean localOverride)
Sets whether local properties override properties from files. |
void |
setPersistentId(String persistentId)
Sets the ConfigurationAdmin persistent Id that the bean should read. |
void |
setProperties(Properties properties)
Sets the local properties, e.g. via the nested tag in XML bean definitions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigAdminPropertiesFactoryBean()
| Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanException
public Object getObject()
throws Exception
getObject in interface FactoryBeanExceptionpublic Class getObjectType()
getObjectType in interface FactoryBeanpublic boolean isSingleton()
isSingleton in interface FactoryBeanpublic String getPersistentId()
public void setPersistentId(String persistentId)
persistentId - The persistentId to set.public void setProperties(Properties properties)
public void setLocalOverride(boolean localOverride)
Default is "false": Properties from the Configuration Admin override local defaults. Can be switched to "true" to let local properties override the Configuration Admin properties.
public void setBundleContext(BundleContext bundleContext)
BundleContextAwareBundleContext that this bean runs in. Normally this can
be used to initialize an object.
setBundleContext in interface BundleContextAwarebundleContext - the BundleContext object to be used
by this object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||