raccoon.tibco.tibrv.message
Class RvFactory

java.lang.Object
  extended by raccoon.tibco.tibrv.message.RvFactory
All Implemented Interfaces:
IFactory, IBaseComponent

public class RvFactory
extends java.lang.Object
implements IFactory

The implementation above TIB/Rendezvous of the factory interface.

Since:
Raccoon v1.0
Version:
$Id:$
Author:
Cedric ROUVRAIS

Field Summary
 
Fields inherited from interface raccoon.api.eai.message.IFactory
BUS_MESSAGE, DESC_MESSAGE, FACTORY_ACCESSOR_NAME, MESSAGE
 
Constructor Summary
RvFactory()
           
 
Method Summary
 boolean isInError()
          Checks the state of this component.
 IBusMessage newBusMessage()
          Creates a new instance of a bus message.
 IField newField()
          Creates a new instance of field
 IMessage newMessage()
          Creates a new instance of a message.
 IDescMessage newMessage(IBeanDescriptor pBeanDescriptor)
          Creates a new instance of a message for a specified Java class.
 IDescMessage newMessage(IMessageDescriptor pMessageDescriptor)
          Creates a new instance of a message based upon a specified message descriptor.
 IMessage newMessage(java.lang.Object pNativeMsg)
          Creates a proxy object for the given native message.
 IMessage newMessage(java.lang.String pMessageType)
          Creates a new message instance depending on the desired implementation
 IMessageDescriptor newMessageDescriptor(java.lang.Class pJavaBean)
          Given the class of a java bean creates a new message definition instance.
 IMessageDescriptor newMessageDescriptor(IBeanDescriptor pBeanDescriptor)
          Given a bean descriptor creates a new message definition instance.
 IMessageDescriptor newMessageDescriptor(IBeanProperty pPropertyDescriptor)
          Creates a new message descriptor for the provided property of a java bean
 ITracking newTracking()
          Creates a new instance of a tracking element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RvFactory

public RvFactory()
Method Detail

newMessage

public IMessage newMessage(java.lang.String pMessageType)
                    throws java.lang.IllegalArgumentException
Creates a new message instance depending on the desired implementation

Specified by:
newMessage in interface IFactory
Parameters:
pMessageType - the type of message desired, one of IFactory.MESSAGE, IFactory.BUS_MESSAGE, IFactory.DESC_MESSAGE.
Returns:
the instance that implements the desired interface.
Throws:
java.lang.IllegalArgumentException - if the desired type of message isn't supported by this factory.

newBusMessage

public IBusMessage newBusMessage()
Creates a new instance of a bus message.

Specified by:
newBusMessage in interface IFactory
Returns:
an empty message implementing the IBusMessage interface

newMessage

public IMessage newMessage()
Creates a new instance of a message.

Specified by:
newMessage in interface IFactory
Returns:
an empty message implementing the IMessage interface

newMessage

public IMessage newMessage(java.lang.Object pNativeMsg)
                    throws java.lang.IllegalArgumentException
Creates a proxy object for the given native message.

Specified by:
newMessage in interface IFactory
Parameters:
pNativeMsg - the native implementation of a bus message.
Returns:
the Raccoon proxy element
Throws:
java.lang.IllegalArgumentException - if this native message isn't supported
java.lang.IllegalArgumentException - if a proxy couldn't be created (native message corrupted for example).

newMessage

public IDescMessage newMessage(IBeanDescriptor pBeanDescriptor)
                        throws RaccoonException
Creates a new instance of a message for a specified Java class.

Specified by:
newMessage in interface IFactory
Parameters:
pBeanDescriptor - the bean descriptor for the message.
Returns:
an empty message that is designed to withhold the specified java class
Throws:
RaccoonException - if the operation fails.

newMessage

public IDescMessage newMessage(IMessageDescriptor pMessageDescriptor)
                        throws RaccoonException
Creates a new instance of a message based upon a specified message descriptor.

Specified by:
newMessage in interface IFactory
Parameters:
pMessageDescriptor - the message descriptor to use.
Returns:
an empty message that is designed to withhold contents defined by the message descriptor.
Throws:
RaccoonException - if the operation fails.

newMessageDescriptor

public IMessageDescriptor newMessageDescriptor(IBeanDescriptor pBeanDescriptor)
                                        throws RaccoonException
Given a bean descriptor creates a new message definition instance.

Specified by:
newMessageDescriptor in interface IFactory
Parameters:
pBeanDescriptor - the bean descriptor.
Returns:
the associated message definition.
Throws:
RaccoonException - if the process fails.

newMessageDescriptor

public IMessageDescriptor newMessageDescriptor(IBeanProperty pPropertyDescriptor)
                                        throws RaccoonException
Creates a new message descriptor for the provided property of a java bean

Specified by:
newMessageDescriptor in interface IFactory
Parameters:
pPropertyDescriptor - the property descriptor to use
Returns:
the associated message descriptor
Throws:
RaccoonException - if the property descriptor is invalid.

newMessageDescriptor

public IMessageDescriptor newMessageDescriptor(java.lang.Class pJavaBean)
                                        throws RaccoonException
Given the class of a java bean creates a new message definition instance.

Specified by:
newMessageDescriptor in interface IFactory
Parameters:
pJavaBean - the class for which the IMessageDescriptor is desired.
Returns:
the associated message definition.
Throws:
RaccoonException - if the process fails.

newField

public IField newField()
Creates a new instance of field

Specified by:
newField in interface IFactory
Returns:
an empty field

newTracking

public ITracking newTracking()
Creates a new instance of a tracking element

Specified by:
newTracking in interface IFactory
Returns:
an empty tracking element

isInError

public boolean isInError()
Checks the state of this component.

Specified by:
isInError in interface IBaseComponent
Returns:
true if this component is in error.


Copyright null null. All Rights Reserved.