|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--asgaard.skid.SkidBean | +--asgaard.skid.SkidBeanContainer
Implementation of an wrapper for a Streamable Object carried by an DataBeanContainer, including the functionality (persistence) of an SkidBean.
Important: Key values which are accessible via the RemoteBroker
have to be defined following the Java-Beans-Convention using the getXXXX
methods for key-generation.
Remark: All attribues used by the Object which
are not intended to be persitent have to be declared transient
and restored
by default or the parameterless constructor.
Minimal Usage: (The RemoteBroker should be instanciated at this time)
SkidBean b = new SkidBean(
b.setName()
(optional)
b.flush();
SkidBean
, Serialized FormFields inherited from class asgaard.skid.SkidBean |
broker,
debug,
history_policy,
LAST_METHOD |
Constructor Summary | |
SkidBeanContainer(java.lang.Object contain)
Creates a Conainer wrapping a given object. |
Method Summary | |
java.lang.reflect.Method[] |
getMethods()
Returns an array containing Method objects reflecting all the public member methods of the class or interface represented by this Class object, including those declared by the wrapped object. |
java.lang.String |
getName()
Returns the name of the Bean which shold be human readable and may be unique in some cases, but this is not strictly required. |
java.lang.Object |
getObject()
Returns the wrapped Object |
java.lang.Object |
invoke(java.lang.String name,
java.lang.Object[] args,
boolean modify)
Invokes the underlying method represented by this Method object, on the specified object with the specified parameters. |
void |
setObject(java.lang.Object contain)
Sets (replaces if any before) the given objects. |
Methods inherited from class asgaard.skid.SkidBean |
addEvent,
cloneBean,
flush,
getAge,
getBeanType,
getBroker,
getChangeHistory,
getClassKey,
getCreated,
getEvent,
getFilter,
getIdentifier,
getKey,
getLink,
getModified,
getUpdatePolicy,
init,
isChanged,
isNew,
isReadOnly,
modify,
putLink,
setAge,
suscribeEvent,
undo |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SkidBeanContainer(java.lang.Object contain) throws java.lang.Exception
contain
- the wrapped objectMethod Detail |
public java.lang.String getName()
public void setObject(java.lang.Object contain) throws SkidException
contain
- the wrapped objectpublic java.lang.Object getObject()
public java.lang.reflect.Method[] getMethods() throws java.lang.SecurityException
public java.lang.Object invoke(java.lang.String name, java.lang.Object[] args, boolean modify) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException, java.lang.NullPointerException, java.lang.NoSuchMethodException
Search order: First methods of the SkidBeanContainer
are invoked before the Methods of the wrapped Object are invoked.
name
- the name of the Methodargs
- the Argumentsmodify
- call the modify-method too? (not including undo)Method.invoke(java.lang.Object, java.lang.Object[])
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |