public class Rules extends Object implements Initialisable, Disposable, MessageService
Modifier and Type | Field and Description |
---|---|
protected static Log |
logger |
protected MuleContext |
muleContext |
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
Rules(RulesEngine rulesEngine,
String resource,
Object configuration,
String entryPoint,
Collection initialFacts,
boolean stateless,
boolean cepMode,
FlowConstruct flowConstruct,
MuleContext muleContext) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
MuleMessage |
generateMessage(String endpoint,
Object payload,
Map messageProperties,
MessageExchangePattern exchangePattern) |
Object |
getConfiguration() |
String |
getEntryPointLabel() |
Collection |
getInitialVariables() |
String |
getResource() |
Object |
getSessionData() |
protected Object |
handleEvent(MuleEvent event) |
void |
initialise()
Method used to perform any initialisation work.
|
boolean |
isCepMode() |
boolean |
isStateless() |
protected transient MuleContext muleContext
protected static final Log logger
public Rules(RulesEngine rulesEngine, String resource, Object configuration, String entryPoint, Collection initialFacts, boolean stateless, boolean cepMode, FlowConstruct flowConstruct, MuleContext muleContext)
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic void dispose()
Disposable
dispose
in interface Disposable
public MuleMessage generateMessage(String endpoint, Object payload, Map messageProperties, MessageExchangePattern exchangePattern) throws MuleException
generateMessage
in interface MessageService
MuleException
public String getResource()
public Object getConfiguration()
public String getEntryPointLabel()
public Object getSessionData()
public Collection getInitialVariables()
public boolean isStateless()
public boolean isCepMode()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.