Package com.jalios.jcms
Class ChannelListener
- java.lang.Object
-
- com.jalios.jcms.ChannelListener
-
- All Implemented Interfaces:
PluginComponent
,java.lang.Comparable
- Direct Known Subclasses:
AccessControlManager
,BackgroundProcessManager
,DefaultApplicationChannelListener
,DerbyManager
,FileProcessorManager
,StartupDataGenerator
public abstract class ChannelListener extends java.lang.Object implements java.lang.Comparable, PluginComponent
A listener called during the Channel life cycle.- Since:
- jcms-2.1
- Author:
- Olivier Dedieu
-
-
Field Summary
Fields Modifier and Type Field Description protected int
order
-
Constructor Summary
Constructors Constructor Description ChannelListener()
Constructs a ChannelListener with order = 0ChannelListener(int order)
Constructs a ChannelListener with the given order
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object obj)
Compare this object with the specified object for order.boolean
equals(java.lang.Object obj)
Indicates wheter some other object is "equal to" this one.void
handleFinalize()
Called when the channel is finalizedboolean
init(Plugin plugin)
Initialize the component with the given plugin configurationvoid
initAfterStartup()
Called at the end of JPlatform startup.void
initAfterStoreLoad()
Called just after the store has been loaded and the channel has been initialized.void
initBeforeHibernateFactoryBuild()
Called before the build of hibernate session factory (after adding all core/plugins type in configuration).void
initBeforeStoreLoad()
Called just before the store has been loaded.
-
-
-
Method Detail
-
compareTo
public int compareTo(java.lang.Object obj)
Compare this object with the specified object for order.- Specified by:
compareTo
in interfacejava.lang.Comparable
- Parameters:
obj
- the Object to be compared.- See Also:
Comparable.compareTo(java.lang.Object)
-
equals
public boolean equals(java.lang.Object obj)
Indicates wheter some other object is "equal to" this one. The comparison is performed with compareTo() method.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- the Object to be compared.
-
init
public boolean init(Plugin plugin)
Description copied from interface:PluginComponent
Initialize the component with the given plugin configuration- Specified by:
init
in interfacePluginComponent
- Parameters:
plugin
- the calling plugin- Returns:
- true if the component has been correctly initialized.
-
handleFinalize
public void handleFinalize()
Called when the channel is finalized- Since:
- jcms-2.1
-
initBeforeStoreLoad
public void initBeforeStoreLoad() throws java.lang.Exception
Called just before the store has been loaded. If for any reason you want to interrupt JCMS startup, you can throw an exception. The exception's message will be displayed in JCMS status page (to any user!).- Throws:
java.lang.Exception
- any exception you may want to throw if a problem occurs needing to interrupt JCMS startup.- Since:
- jcms-5.7.0
-
initAfterStoreLoad
public void initAfterStoreLoad() throws java.lang.Exception
Called just after the store has been loaded and the channel has been initialized. If for any reason you want to interrupt JCMS startup, you can throw an exception. The exception's message will be displayed in JCMS status page (to any user!).- Throws:
java.lang.Exception
- any exception you may want to throw if a problem occurs needing to interrupt JCMS startup.- Since:
- jcms-5.7.0
-
initAfterStartup
public void initAfterStartup()
Called at the end of JPlatform startup.- Since:
- jcms-10.0.5
-
initBeforeHibernateFactoryBuild
public void initBeforeHibernateFactoryBuild() throws java.lang.Exception
Called before the build of hibernate session factory (after adding all core/plugins type in configuration).- Throws:
java.lang.Exception
- Since:
- jcms-10.0.6
-
-