Class StateManager
java.lang.Object
com.jalios.jcms.ChannelListener
com.jalios.jcms.exploitation.state.StateManager
- All Implemented Interfaces:
PluginComponent,JPropertiesListener,Comparable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.jalios.jcms.ChannelListener
order -
Method Summary
Modifier and TypeMethodDescriptionaddNotifier(StateNotifier stateNotifier) static StateManagerreturns an unmodifiable collection of notifier, useaddNotifier(StateNotifier)/removeNotifier(StateNotifier)methods to update itgetProperties(String propertyPrefix) protected static StringgetProperty(String propertyName, String defaultValue) getState()voidCalled when the channel is finalizedvoidinit()voidbooleanisAlive()booleanisError()booleanisReady()booleanbooleanvoidpropertiesChange(JProperties properties) Invoked after properties have been modified in JCMS and save on disk.removeNotifier(StateNotifier stateNotifier) voidsetMessage(String message) setState(StateManager.JPlatformState state, String message) voidsetWebappPath(String webappPath) voidshutdown()Methods inherited from class com.jalios.jcms.ChannelListener
compareTo, equals, getOrder, init, initAfterStartup, initAfterStoreLoad, initBeforeHibernateFactoryBuild, initBeforeStoreLoad
-
Method Details
-
initFromStartupProperties
public void initFromStartupProperties() -
getInstance
-
getWebappPath
-
setWebappPath
-
getMessage
-
setMessage
-
getProperty
-
getProperties
-
propertiesChange
Description copied from interface:JPropertiesListenerInvoked after properties have been modified in JCMS and save on disk.You cannot alter the value received in parameters.
Note that properties parameter may be null, a limited set of site properties, or all site properties.
To check that a property has been modified, reload the "current" property instead using
channel.getPropertiesorchannel.getProperty.- Specified by:
propertiesChangein interfaceJPropertiesListener- Parameters:
properties- the properties which have been submitted to change
-
getNotifiers
returns an unmodifiable collection of notifier, useaddNotifier(StateNotifier)/removeNotifier(StateNotifier)methods to update it- Returns:
- an unmodifiable collection of notifier
-
removeNotifier
-
addNotifier
-
setState
-
getState
-
isError
public boolean isError() -
isStartup
public boolean isStartup() -
isAlive
public boolean isAlive() -
isReady
public boolean isReady() -
isUnknown
public boolean isUnknown() -
init
public void init() -
shutdown
public void shutdown() -
handleFinalize
public void handleFinalize()Description copied from class:ChannelListenerCalled when the channel is finalized- Overrides:
handleFinalizein classChannelListener
-