|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.cinnamon.io.mapping.AbstractClassMapping
org.spicefactory.pimento.metadata.EntityClassMapping
public class EntityClassMapping
Cinnamon ClassMapping for persistent entities managed by Pimento. This is actually a "fake" ClassMapping since it will not be used by Cinnamon's AMF engine. It is only used for registration purposes.
| Constructor Summary | |
|---|---|
EntityClassMapping(String actionScriptClass,
Class<?> javaClass)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
init(CinnamonConfig config)
Initialization method that will be called once for each ClassMapping instance at application startup. |
Object |
newJavaInstance()
Creates a new instance of the mapped Java class. |
void |
readObject(Object instance,
AMFInput input,
ObjectEncoding encoding,
String[] propertyNames)
Restores the content of the given object from the AMFInput instance. |
void |
setMetadata(EntityMetadata metadata)
|
String |
toString()
|
void |
writeObject(Object instance,
AMFOutput output)
Writes the content of the specified object to the given AMFOutput. |
| Methods inherited from class org.spicefactory.cinnamon.io.mapping.AbstractClassMapping |
|---|
getActionScriptClass, getAlias, getEncoding, getJavaClass, getJavaFactory, getPropertyNames, setPropertyNames, writeClassDescriptor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EntityClassMapping(String actionScriptClass,
Class<?> javaClass)
actionScriptClass - the name of the ActionScript class that maps to the specified Java classjavaClass - the Java class (a persistent entity class)| Method Detail |
|---|
public void setMetadata(EntityMetadata metadata)
public void init(CinnamonConfig config)
ClassMapping
config - the Cinnamon configuration instancepublic Object newJavaInstance()
ClassMapping
public void readObject(Object instance,
AMFInput input,
ObjectEncoding encoding,
String[] propertyNames)
ClassMapping
instance - the object to be restoredinput - the AMF3 data to read fromencoding - the type of object encoding to usepropertyNames - the names of the properties of the object (may be empty for some kinds of mappings)
public void writeObject(Object instance,
AMFOutput output)
ClassMapping
instance - the object to be serializedoutput - the output to write topublic String toString()
toString in class AbstractClassMapping
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||