|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 RMsgFactorymsgName - Message name.
FactoryException
public RMapMessage createMsgObject(java.lang.String msgName,
boolean create)
throws FactoryException
RMsgFactory
createMsgObject in interface RMsgFactorymsgName - 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 RMsgFactorycls - Class.
FactoryException
public RMapMessage createMsgObject(java.lang.Class cls,
boolean create)
throws FactoryException
RMsgFactory
createMsgObject in interface RMsgFactorycls - Class.create - If true then nested fields of type MSGOBJ
and BEAN are precreated.
FactoryExceptionpublic java.lang.String[] getMsgNames()
RMsgFactory
getMsgNames in interface RMsgFactory
public java.lang.String getQualifiedName(java.lang.String msgName)
throws FactoryException
RMsgFactory
getQualifiedName in interface RMsgFactorymsgName - Message name.
FactoryExceptionpublic java.lang.String[] getBeanFieldNames()
RMsgFactory
getBeanFieldNames in interface RMsgFactorypublic java.lang.String getFullBeanFieldName(java.lang.String beanField)
RMsgFactory
getFullBeanFieldName in interface RMsgFactorybeanField - Name of bean field.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||