WrappingObject
Implemented by all objects that have been viewed as per WrapperFactory#wrap(Object) .
API
WrappingObject.java
interface WrappingObject {
void __causeway_save() (1)
Object __causeway_wrapped() (2)
ImmutableEnumSet<ExecutionMode> __causeway_executionModes() (3)
}
1 | causeway_save()
Programmatic equivalent of invoking save for a transient object . |
2 | causeway_wrapped()
Provide access to the underlying, wrapped object. |
3 | causeway_executionModes()
The ExecutionMode (s) inferred from the SyncControl with which this wrapper was WrapperFactory#wrap(Object, SyncControl) created . |
Members
__causeway_save()
Programmatic equivalent of invoking save for a transient object .
domain classes may not have a method with this name. The _causeway prefix is intended to reduce the risk of a collision.
|
__causeway_wrapped()
Provide access to the underlying, wrapped object.
Used to unwrap objects used as arguments to actions (otherwise, end up creating a ObjectSpecification
for the Javassist-enhanced class, not the original class).
domain classes may not have a method with this name. The _causeway prefix is intended to reduce the risk of a collision.
|
*NOTE: there is a string-literal reference to this name `DomainObjectInvocationHandler` , so it should not be changed.* .
__causeway_executionModes()
The ExecutionMode (s) inferred from the SyncControl with which this wrapper was WrapperFactory#wrap(Object, SyncControl) created .