|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectraccoon.core.types.AbsComponent
raccoon.core.types.AbsLoadable
raccoon.core.types.AbsConfigurableLoadable
raccoon.tibco.tibrv.badhnati.ae.TibrvAeParser
public class TibrvAeParser
Converts java beans to IBusMessage instances or vice-versa.
| Field Summary |
|---|
| Fields inherited from class raccoon.core.types.AbsConfigurableLoadable |
|---|
mConfigurableManager |
| Fields inherited from class raccoon.core.types.AbsLoadable |
|---|
mIsLoaded |
| Fields inherited from class raccoon.core.types.AbsComponent |
|---|
mIsInError |
| Constructor Summary | |
|---|---|
TibrvAeParser()
Default constructor, required for dynamic instanciation |
|
| Method Summary | |
|---|---|
java.lang.Object |
bindFrom(com.tibco.tibrv.TibrvMsg pTibrvMsg)
Converts the provided IBusMessage instance into the
corresponding java bean instance. |
com.tibco.tibrv.TibrvMsg |
bindTo(java.lang.Object pJavaBean)
Converts a java bean into a valid TIB/Rendezvous message. |
void |
cload()
Invoked by the service manager to start this component once it has been configured. |
void |
configureParameters()
Configures the various parameters for this component. |
IBeanAnalyzer |
getAnalyzer()
The bean introspector used by this component to retrieve serializable information. |
IFactory |
getFactory()
Retrieves the factory instance used to instanciate empty message objects. |
IRepoGenerator |
getRepoGenerator()
TIB/Repository generator service used to create TIB/Repository compliant URLs according to the Raccoon specification. |
IUtils |
getUtils()
The messaging layer utility service |
boolean |
isInvokeAdder()
Should this parser invoke the adder instead of the setter for collection methods. |
boolean |
isLogable()
This component requires a logging service. |
void |
load()
Loads or initializes the component. |
IMessage |
marshal(java.lang.Object pJavaBean)
Converts a given java bean instance into a IBusMessage instance. |
void |
setAnalyzer(IBeanAnalyzer pAnalyzer)
Assigns the IBeanAnalyzer instance required by this component |
void |
setFactory(IFactory pFactory)
Assigns the IFactory used to instanciate empty message objects. |
void |
setInvokeAdder(boolean pInvokeAdder)
Defines the mutator preference method for collections. |
void |
setRepoGenerator(IRepoGenerator pRepoGenerator)
TIB/Repository generator service used to create TIB/Repository compliant URLs according to the Raccoon specification. |
void |
setUtils(IUtils pUtils)
Assigns the message layer utility service |
java.lang.Object |
unmarshal(IMessage pMessage)
Converts the provided IBusMessage instance into the corresponding
java bean instance. |
| Methods inherited from class raccoon.core.types.AbsConfigurableLoadable |
|---|
isStable, setConfigurableManager, setLogger |
| Methods inherited from class raccoon.core.types.AbsLoadable |
|---|
getLog, isInError, isInitialised, isRunning, unload |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TibrvAeParser()
| Method Detail |
|---|
public void configureParameters()
IConfigurableManager provided during the invocation
of AbsConfigurableLoadable.setConfigurableManager(IConfigurableManager).
configureParameters in interface IConfigurableconfigureParameters in class AbsConfigurableLoadablepublic boolean isLogable()
true as this component needs a logging component.public boolean isInvokeAdder()
true if the adder will be invoked rather than the setter.
public void setInvokeAdder(boolean pInvokeAdder)
throws ResourceNotFoundException
pInvokeAdder - should the adder be invoked in preference to the setter.
ResourceNotFoundException - if the property named InvokeAdder was not found.public IUtils getUtils()
IUtils used
public void setUtils(IUtils pUtils)
throws ResourceNotFoundException
pUtils - the implementation of IUtils to use
ResourceNotFoundException - if the property named Utils was not found.public IBeanAnalyzer getAnalyzer()
IBeanAnalyzer instance used by this component
public void setAnalyzer(IBeanAnalyzer pAnalyzer)
throws ResourceNotFoundException
IBeanAnalyzer instance required by this component
pAnalyzer - the instance defined in the Service Manager configuration file
ResourceNotFoundException - if the property named Analyzer was not found.public IRepoGenerator getRepoGenerator()
public void setRepoGenerator(IRepoGenerator pRepoGenerator)
throws ResourceNotFoundException
pRepoGenerator - the instance to be used by this component
ResourceNotFoundException - if the property named RepoGenerator was not found.public IFactory getFactory()
IFactory instance used
public void setFactory(IFactory pFactory)
throws ResourceNotFoundException
IFactory used to instanciate empty message objects.
pFactory - the factory instance to use.
ResourceNotFoundException - if the property named RepoGenerator was not found.
public IMessage marshal(java.lang.Object pJavaBean)
throws RaccoonException
IBusMessage instance.
pJavaBean - the java bean instance
IBusMessage instance.
RaccoonException - if the java bean is invalid, or if this component isn't loaded.
public java.lang.Object unmarshal(IMessage pMessage)
throws RaccoonException
IBusMessage instance into the corresponding
java bean instance.
pMessage - the message to be converted
RaccoonException - if this component isn't loaded.
RaccoonException - if the conversion fails.
public java.lang.Object bindFrom(com.tibco.tibrv.TibrvMsg pTibrvMsg)
throws RaccoonException
IBusMessage instance into the
corresponding java bean instance.
bindFrom in interface ITibrvMsgParserpTibrvMsg - the TIB/Rendezvous message containing a serialized java bean.
RaccoonException - if this component isn't loaded.
public com.tibco.tibrv.TibrvMsg bindTo(java.lang.Object pJavaBean)
throws RaccoonException
bindTo in interface ITibrvMsgParserpJavaBean - the java bean instance to convert.
RaccoonException - if the conversion process fails.
public void load()
throws java.lang.IllegalStateException,
LoadableException
load in interface ILoadableload in class AbsConfigurableLoadableLoadableException - if the component couldn't load itself.
java.lang.IllegalStateException - if the component isn't in a state to load itself. for example it is already loaded.
public void cload()
throws RaccoonException
false and then set to true once all the init code has been performed.
RaccoonException - if this component isn't initialisable or is already running.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||