|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.imolinfo.jbi4ejb.jbi.component.runtime.RuntimeContext
public class RuntimeContext
This class is used to store and retrieve the information that should be available anywhere in the component runtime. Each instance variable of this class will be initialized at various points of the component runtime using setter methods on this class. For example, the ComponentContext and related resources from this class are not available to the component runtime until the jbi framework calls the init method of the ComponentLifeCycle of this component.
Method Summary | |
---|---|
void |
closeDeliveryChannel()
closes the delivery channel as part of the component shutdown process. |
javax.jbi.component.ComponentContext |
getComponentContext()
Getter for property mComponentContext. |
java.lang.String |
getComponentName()
Returns the Component Name if the ComponentContext is set. |
javax.jbi.messaging.DeliveryChannel |
getDeliveryChannel()
Getter for property DeliveryChannel. |
static RuntimeContext |
getInstance()
|
java.util.logging.Logger |
getLogger()
Returns the logger. |
MessageExchangeHandlerFactory |
getMessageExchangeHandlerFactory()
Getter for property MessageExchangeHandlerFactory. |
MessageExchangeHandler |
newMessageExchangeHandler(javax.jbi.messaging.MessageExchange msgExchange)
helper method to create a new message exchange handler using the message exchange factory set on the runtime context. |
void |
openDeliveryChannel()
opens the delivery channel to accept the message exchange objects or send the message exchange objects |
void |
setComponentContext(javax.jbi.component.ComponentContext componentContext)
Setter for property ComponentContext. |
void |
setLogger(java.lang.String name,
java.lang.String resourceBundle)
Sets the logger. |
void |
setMessageExchangeHandlerFactory(MessageExchangeHandlerFactory factory)
Setter for property MessageExchangeHandlerFactory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RuntimeContext getInstance()
public javax.jbi.component.ComponentContext getComponentContext()
public void setComponentContext(javax.jbi.component.ComponentContext componentContext)
componentContext
- New value of property ComponentContext.public javax.jbi.messaging.DeliveryChannel getDeliveryChannel()
public void openDeliveryChannel()
public void closeDeliveryChannel()
public void setLogger(java.lang.String name, java.lang.String resourceBundle)
name
- name for the Logger.resourceBundle
- resource bundle for the logger. can be null.public java.util.logging.Logger getLogger()
public java.lang.String getComponentName()
public MessageExchangeHandlerFactory getMessageExchangeHandlerFactory()
public void setMessageExchangeHandlerFactory(MessageExchangeHandlerFactory factory)
componentContext
- New value of property MessageExchangeHandlerFactory.public MessageExchangeHandler newMessageExchangeHandler(javax.jbi.messaging.MessageExchange msgExchange)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |