fr.paris.lutece.plugins.document.service.rules
Class RuleEngine

java.lang.Object
  extended by fr.paris.lutece.plugins.document.service.rules.RuleEngine
All Implemented Interfaces:
DocumentEventListener, java.util.EventListener

public class RuleEngine
extends java.lang.Object
implements DocumentEventListener

Rule engine. Executes rules on every document event.


Method Summary
static RuleEngine getInstance()
          Gets the unique instance
 void init()
          Initialize
 void processDocumentEvent(DocumentEvent event)
          Process a document event
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RuleEngine getInstance()
Gets the unique instance

Returns:
The unique instance

init

public void init()
Initialize


processDocumentEvent

public void processDocumentEvent(DocumentEvent event)
                          throws DocumentException
Process a document event

Specified by:
processDocumentEvent in interface DocumentEventListener
Parameters:
event - The event to process
Throws:
DocumentException - raise when error occurs in event or rule


Copyright © 2009 Mairie de Paris. All Rights Reserved.