public class SolrChildApplicationContextFactory extends ChildApplicationContextFactory
ChildApplicationContextFactory.ApplicationContextState
AbstractPropertyBackedBean.DefaultResolver, AbstractPropertyBackedBean.RuntimeState
DEFAULT_INSTANCE_NAME, lock, runtimeState
Constructor and Description |
---|
SolrChildApplicationContextFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
destroy(boolean isPermanent)
Releases any resources held by this component.
|
String |
getProperty(String name)
Gets a property value.
|
Set<String> |
getPropertyNames()
Gets the names of all properties.
|
boolean |
isUpdateable(String name)
Checks if a property is updateable.
|
void |
setProperty(String name,
String value)
Sets the value of a property.
|
afterPropertiesSet, applyDefaultOverrides, createInitialState, getApplicationContext, getDescription, getMonitorObject, getPersister, getReadOnlyApplicationContext, getTypeName, setCompositePropertyTypes, setPersister, setTypeName
destroy, doInit, getCategory, getEncryptedPropertyDefaults, getId, getInstancePath, getParent, getPropertyDefaults, getRegistry, getState, init, onApplicationEvent, performEarlyPropertyChecks, removeProperties, removeProperty, resolveDefault, revert, setApplicationContext, setAutoStart, setBeanName, setCategory, setEarlyPropertyCheckers, setEncryptedPropertyDefaults, setInstancePath, setProperties, setPropertyDefaults, setRegistry, setSaveSetProperty, start, start, stop, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, removeProperties, revert, setProperties
removeProperty, start, stop
public boolean isUpdateable(String name)
AbstractPropertyBackedBean
isUpdateable
in interface PropertyBackedBean
isUpdateable
in class ChildApplicationContextFactory
name
- the property nametrue
if the property is updateablepublic String getProperty(String name)
AbstractPropertyBackedBean
getProperty
in interface PropertyBackedBeanState
getProperty
in class AbstractPropertyBackedBean
name
- the namepublic Set<String> getPropertyNames()
AbstractPropertyBackedBean
getPropertyNames
in interface PropertyBackedBeanState
getPropertyNames
in class AbstractPropertyBackedBean
public void setProperty(String name, String value)
AbstractPropertyBackedBean
PropertyBackedBeanState.stop()
.
When called from code within the local node the values are saved to the database in the Enterprise edition and will be visible in a JMX client.
setProperty
in interface PropertyBackedBeanState
setProperty
in class AbstractPropertyBackedBean
name
- the property namevalue
- the property valueprotected void destroy(boolean isPermanent)
AbstractPropertyBackedBean
destroy
in class ChildApplicationContextFactory
isPermanent
- is the component being destroyed forever, i.e. should persisted values be removed? On server shutdown,
this value would be false
, whereas on the removal of a dynamically created instance, this
value would be true
.Copyright © 2005–2017 Alfresco Software. All rights reserved.