|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.management.subsystems.AbstractPropertyBackedBean
org.alfresco.repo.management.subsystems.CompositeDataBean
public class CompositeDataBean
A class that wraps an instance of a Java Bean class declared as a composite property type on
ChildApplicationContextFactory
making it configurable, either through alfresco-global.properties or a JMX
console.
ChildApplicationContextFactory
Nested Class Summary | |
---|---|
protected class |
CompositeDataBean.CompositeDataBeanState
The Class CompositeDataBeanState. |
Nested classes/interfaces inherited from class org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean |
---|
AbstractPropertyBackedBean.DefaultResolver |
Field Summary |
---|
Fields inherited from class org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean |
---|
DEFAULT_INSTANCE_NAME, lock |
Constructor Summary | |
---|---|
CompositeDataBean(org.springframework.context.ApplicationContext parent,
PropertyBackedBean owner,
PropertyBackedBeanRegistry registry,
java.util.Properties propertyDefaults,
java.lang.String category,
java.lang.Class type,
java.util.List instancePath)
Constructor for dynamically created instances, e.g. |
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected PropertyBackedBeanState |
createInitialState()
Creates the initial state. |
protected java.lang.Object |
getBean()
Gets the wrapped Java bean. |
boolean |
isUpdateable(java.lang.String name)
Checks if a property is updateable. |
protected java.lang.String |
resolveDefault(java.lang.String name)
Resolves the default value of a property, if there is one, expanding placholders as necessary. |
protected void |
stop(boolean broadcast)
Stops the bean, optionally broadcasting the event to remote nodes. |
Methods inherited from class org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean |
---|
applyDefaultOverrides, destroy, destroy, doInit, getCategory, getDescription, getId, getInstancePath, getParent, getProperty, getPropertyDefaults, getPropertyNames, getRegistry, getState, init, onApplicationEvent, revert, setApplicationContext, setAutoStart, setBeanName, setCategory, setInstancePath, setProperties, setProperty, setPropertyDefaults, setRegistry, start, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeDataBean(org.springframework.context.ApplicationContext parent, PropertyBackedBean owner, PropertyBackedBeanRegistry registry, java.util.Properties propertyDefaults, java.lang.String category, java.lang.Class type, java.util.List instancePath) throws java.io.IOException
ChildApplicationContextFactory
.
parent
- the parent application contextregistry
- the registry of property backed beanspropertyDefaults
- property defaults provided by the installer or System propertiescategory
- the categoryinstancePath
- the instance path within the categoryowner
- the owning beantype
- the class of Java bean to be wrapped
java.io.IOException
- Signals that an I/O exception has occurred.Method Detail |
---|
public void afterPropertiesSet() throws java.lang.Exception
AbstractPropertyBackedBean
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class AbstractPropertyBackedBean
java.lang.Exception
protected java.lang.String resolveDefault(java.lang.String name)
AbstractPropertyBackedBean
resolveDefault
in class AbstractPropertyBackedBean
name
- the property name
null
if there isn't oneprotected PropertyBackedBeanState createInitialState() throws java.io.IOException
AbstractPropertyBackedBean
createInitialState
in class AbstractPropertyBackedBean
java.io.IOException
- Signals that an I/O exception has occurred.public boolean isUpdateable(java.lang.String name)
AbstractPropertyBackedBean
isUpdateable
in interface PropertyBackedBean
isUpdateable
in class AbstractPropertyBackedBean
name
- the property name
true
if the property is updateableprotected java.lang.Object getBean()
protected void stop(boolean broadcast)
AbstractPropertyBackedBean
stop
in class AbstractPropertyBackedBean
broadcast
- Should the event be broadcast?
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |