All Packages Class Hierarchy This Package Previous Next Index
Class replica.MetaInformer
java.lang.Object
|
+----meta.MetaObject
|
+----replica.MetaInformer
- public class MetaInformer
- extends MetaObject
This class is only important if you want to add your own replication strategy.
It provides information about the relationship of Base- and Meta-Objects.
It can also be used to retreive information about objects which have no Meta-object.
- Version:
- 1.0
- Author:
- Markus Jäger
-
MetaInformer()
-
-
createSystemObject(Object, String, RemoteObjectReference)
- This method creates a new instance of a System-Object.
-
creInstanceByName(String)
- This method creates a new Instance.
-
getAccessControlObject(Object)
- This method returns the AccessControlObject of Base-Object.
-
getLayout(Object)
- This method provides information about an object.
-
makeAtLeastReferenceObject(Object)
- This method transforms an object in a Remote-Object or more.
-
newInstance(Class)
- This method creates a new Instance.
-
retFieldBool(Object, String)
- This method provides information about an object.
-
retFieldByte(Object, String)
- This method provides information about an object.
-
retFieldChar(Object, String)
- This method provides information about an object.
-
retFieldDouble(Object, String)
- This method provides information about an object.
-
retFieldFloat(Object, String)
- This method provides information about an object.
-
retFieldInt(Object, String)
- This method provides information about an object.
-
retFieldLong(Object, String)
- This method provides information about an object.
-
retFieldObject(Object, String)
- This method provides information about an object.
-
retFieldShort(Object, String)
- This method provides information about an object.
-
shallowCopyObject(Object)
- This method performs a shallow copy of an object.
-
shallowCopyObject(Object, Object)
- This method performs a shallow copy of an object.
-
stoFieldBool(Object, String, boolean)
- This method provides information about an object.
-
stoFieldByte(Object, String, byte)
- This method provides information about an object.
-
stoFieldChar(Object, String, char)
- This method provides information about an object.
-
stoFieldDouble(Object, String, double)
- This method provides information about an object.
-
stoFieldFloat(Object, String, float)
- This method provides information about an object.
-
stoFieldInt(Object, String, int)
- This method provides information about an object.
-
stoFieldLong(Object, String, long)
- This method provides information about an object.
-
stoFieldObject(Object, String, Object)
- This method provides information about an object.
-
stoFieldShort(Object, String, short)
- This method provides information about an object.
MetaInformer
public MetaInformer()
getAccessControlObject
public static AccessControlObject getAccessControlObject(Object obj)
- This method returns the AccessControlObject of Base-Object.
- Parameters:
- obj - The Base-Object
- Returns:
- The AccessControlObject
shallowCopyObject
public static void shallowCopyObject(Object src,
Object dest)
- This method performs a shallow copy of an object.
- Parameters:
- src - The source object.
- dest - The destination object.
shallowCopyObject
public static Object shallowCopyObject(Object src)
- This method performs a shallow copy of an object.
- Parameters:
- src - The source object.
- Returns:
- The new copy.
makeAtLeastReferenceObject
public static void makeAtLeastReferenceObject(Object obj)
- This method transforms an object in a Remote-Object or more.
- Parameters:
- obj - The object
createSystemObject
public static Object createSystemObject(Object parent,
String className,
RemoteObjectReference id) throws IOException
- This method creates a new instance of a System-Object.
- Parameters:
- parent - The Object the new System-Object belongs to.
- className - The Class of the new System-Object.
- id - The unique ID of the new System-Object.
- Returns:
- The new System-Object
- Throws: IOException
- Thrown if the new System-Object could not be created.
getLayout
public static ObjectLayout getLayout(Object o)
- This method provides information about an object.
retFieldByte
public static byte retFieldByte(Object o,
String name)
- This method provides information about an object.
retFieldChar
public static char retFieldChar(Object o,
String name)
- This method provides information about an object.
retFieldDouble
public static double retFieldDouble(Object o,
String name)
- This method provides information about an object.
retFieldFloat
public static float retFieldFloat(Object o,
String name)
- This method provides information about an object.
retFieldInt
public static int retFieldInt(Object o,
String name)
- This method provides information about an object.
retFieldLong
public static long retFieldLong(Object o,
String name)
- This method provides information about an object.
retFieldObject
public static Object retFieldObject(Object o,
String name)
- This method provides information about an object.
retFieldShort
public static short retFieldShort(Object o,
String name)
- This method provides information about an object.
retFieldBool
public static boolean retFieldBool(Object o,
String name)
- This method provides information about an object.
stoFieldByte
public static void stoFieldByte(Object o,
String name,
byte contents)
- This method provides information about an object.
stoFieldChar
public static void stoFieldChar(Object o,
String name,
char contents)
- This method provides information about an object.
stoFieldDouble
public static void stoFieldDouble(Object o,
String name,
double contents)
- This method provides information about an object.
stoFieldFloat
public static void stoFieldFloat(Object o,
String name,
float contents)
- This method provides information about an object.
stoFieldInt
public static void stoFieldInt(Object o,
String name,
int contents)
- This method provides information about an object.
stoFieldLong
public static void stoFieldLong(Object o,
String name,
long contents)
- This method provides information about an object.
stoFieldObject
public static void stoFieldObject(Object o,
String name,
Object contents)
- This method provides information about an object.
stoFieldShort
public static void stoFieldShort(Object o,
String name,
short contents)
- This method provides information about an object.
stoFieldBool
public static void stoFieldBool(Object o,
String name,
boolean contents)
- This method provides information about an object.
newInstance
public static Object newInstance(Class clazz)
- This method creates a new Instance.
- Parameters:
- clazz - The class of the new instance.
- Returns:
- The new instance
creInstanceByName
public static Object creInstanceByName(String className)
- This method creates a new Instance.
- Parameters:
- className - The name of the class of the new instance.
- Returns:
- The new instance
All Packages Class Hierarchy This Package Previous Next Index