org.silverpeas.process.check
Class AbstractProcessCheck

java.lang.Object
  extended by org.silverpeas.process.check.AbstractProcessCheck
All Implemented Interfaces:
ProcessCheck
Direct Known Subclasses:
AbstractDataProcessCheck, AbstractFileProcessCheck

public abstract class AbstractProcessCheck
extends Object
implements ProcessCheck

The abstract root implementation of Check interface. Methods register and unregister are implemented at this level, and be sure @Named class annotation is well mentionned in the final implementation in the aim to be taken in charge by ProcessCheckRegistration (@see ProcessCheckRegistration).

Author:
Yohann Chastagnier

Constructor Summary
AbstractProcessCheck()
           
 
Method Summary
 void register()
          This method have to be annoted by @PostConstruct.
 void unregister()
          This method have to be annoted by @PreDestroy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.silverpeas.process.check.ProcessCheck
check, getType
 

Constructor Detail

AbstractProcessCheck

public AbstractProcessCheck()
Method Detail

register

@PostConstruct
public void register()
Description copied from interface: ProcessCheck
This method have to be annoted by @PostConstruct. Just after Silverpeas server start, this method is called. The content of this method consists to register the class instance into ProcessCheckRegistration.

Specified by:
register in interface ProcessCheck

unregister

@PreDestroy
public void unregister()
Description copied from interface: ProcessCheck
This method have to be annoted by @PreDestroy. Just before Silverpeas server stop, this method is called. The content of this method consists to unregister the class instance from ProcessCheckRegistration.

Specified by:
unregister in interface ProcessCheck


Copyright © 2016 Silverpeas. All Rights Reserved.