public class CompositeDataBean extends AbstractPropertyBackedBean
ChildApplicationContextFactory
making it configurable, either through alfresco-global.properties or a JMX
console.ChildApplicationContextFactory
Modifier and Type | Class and Description |
---|---|
protected class |
CompositeDataBean.CompositeDataBeanState
The Class CompositeDataBeanState.
|
AbstractPropertyBackedBean.DefaultResolver
DEFAULT_INSTANCE_NAME, lock
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 wrappedjava.io.IOException
- Signals that an I/O exception has occurred.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 namenull
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 nametrue
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?Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.