|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.codestreet.messageforge.RMsgFactoryImpl
Factory implementation.
Method Summary | |
RMapMessage |
createMsgObject(java.lang.Class cls)
Create message instance from Class. |
RMapMessage |
createMsgObject(java.lang.Class cls,
boolean create)
Create message instance from Class. |
RMapMessage |
createMsgObject(java.lang.String msgName)
Create message instance from message name. |
RMapMessage |
createMsgObject(java.lang.String msgName,
boolean create)
Create message instance from message name. |
java.lang.String[] |
getBeanFieldNames()
Get all bean field class names in this factory. |
java.lang.String |
getFullBeanFieldName(java.lang.String beanField)
Get fully qualified name of specified bean field. |
static RMsgFactoryImpl |
getInstance()
Get singleton instance. |
java.lang.String[] |
getMsgNames()
Get all message names in this factory. |
java.lang.String |
getQualifiedName(java.lang.String msgName)
Get the fully qualified name of message class for given message name. |
void |
setDefaultMsgFactories(RMsgFactory[] factories)
Register message factories. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static RMsgFactoryImpl getInstance()
public void setDefaultMsgFactories(RMsgFactory[] factories) throws ConverterException
factories
- Message factoies.
ConverterException
public RMapMessage createMsgObject(java.lang.String msgName) throws FactoryException
RMsgFactory
createMsgObject
in interface RMsgFactory
msgName
- Message name.
FactoryException
public RMapMessage createMsgObject(java.lang.String msgName, boolean create) throws FactoryException
RMsgFactory
createMsgObject
in interface RMsgFactory
msgName
- Message name.create
- If true then nested fields of type MSGOBJ
and BEAN are precreated.
FactoryException
public RMapMessage createMsgObject(java.lang.Class cls) throws FactoryException
RMsgFactory
createMsgObject
in interface RMsgFactory
cls
- Class.
FactoryException
public RMapMessage createMsgObject(java.lang.Class cls, boolean create) throws FactoryException
RMsgFactory
createMsgObject
in interface RMsgFactory
cls
- Class.create
- If true then nested fields of type MSGOBJ
and BEAN are precreated.
FactoryException
public java.lang.String[] getMsgNames()
RMsgFactory
getMsgNames
in interface RMsgFactory
public java.lang.String getQualifiedName(java.lang.String msgName) throws FactoryException
RMsgFactory
getQualifiedName
in interface RMsgFactory
msgName
- Message name.
FactoryException
public java.lang.String[] getBeanFieldNames()
RMsgFactory
getBeanFieldNames
in interface RMsgFactory
public java.lang.String getFullBeanFieldName(java.lang.String beanField)
RMsgFactory
getFullBeanFieldName
in interface RMsgFactory
beanField
- Name of bean field.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |