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, AbstractPropertyBackedBean.RuntimeState
DEFAULT_INSTANCE_NAME, lock, runtimeState
Constructor and Description |
---|
CompositeDataBean(org.springframework.context.ApplicationContext parent,
PropertyBackedBean owner,
PropertyBackedBeanRegistry registry,
Properties propertyDefaults,
String category,
Class<?> type,
List<String> instancePath)
Constructor for dynamically created instances, e.g.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected PropertyBackedBeanState |
createInitialState()
Creates the initial state.
|
protected Object |
getBean()
Gets the wrapped Java bean.
|
boolean |
isUpdateable(String name)
Checks if a property is updateable.
|
protected String |
resolveDefault(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, getEncryptedPropertyDefaults, getId, getInstancePath, getParent, getProperty, getPropertyDefaults, getPropertyNames, getRegistry, getState, init, onApplicationEvent, performEarlyPropertyChecks, removeProperties, removeProperty, revert, setApplicationContext, setAutoStart, setBeanName, setCategory, setEarlyPropertyCheckers, setEncryptedPropertyDefaults, setInstancePath, setProperties, setProperty, setPropertyDefaults, setRegistry, setSaveSetProperty, start, start, stop
public CompositeDataBean(org.springframework.context.ApplicationContext parent, PropertyBackedBean owner, PropertyBackedBeanRegistry registry, Properties propertyDefaults, String category, Class<?> type, List<String> instancePath) throws 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 wrappedIOException
- Signals that an I/O exception has occurred.public void afterPropertiesSet() throws Exception
AbstractPropertyBackedBean
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class AbstractPropertyBackedBean
Exception
protected String resolveDefault(String name)
AbstractPropertyBackedBean
resolveDefault
in class AbstractPropertyBackedBean
name
- the property namenull
if there isn't oneprotected PropertyBackedBeanState createInitialState() throws IOException
AbstractPropertyBackedBean
createInitialState
in class AbstractPropertyBackedBean
IOException
- Signals that an I/O exception has occurred.public boolean isUpdateable(String name)
AbstractPropertyBackedBean
isUpdateable
in interface PropertyBackedBean
isUpdateable
in class AbstractPropertyBackedBean
name
- the property nametrue
if the property is updateableprotected Object getBean()
protected void stop(boolean broadcast)
AbstractPropertyBackedBean
stop
in class AbstractPropertyBackedBean
broadcast
- Should the event be broadcast?Copyright © 2005–2017 Alfresco Software. All rights reserved.