|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IOperationScope
This represents some atomic operation that is performed over any number of objects. This merely marks some operation, this object does not include any operation logic. Its main purpose is to track all the objects that are performed in the scope of the operation.
Implementations can be used to prevent circular references from being processed or prevent fields from being processed in the operation based on some criteria.
Method Summary | |
---|---|
void |
exception(Object object,
Exception e)
Signals an exception occurred during the operation within the object argument. |
void |
exiting(Object object,
boolean processed)
Signals that the executing thread is exiting a code block that executed include(Object) . |
Map<Object,Exception> |
getExceptions()
Get the exceptions that have occurred in the operation up to this point. |
IPermissionProfile |
getPermissionProfile()
Get the permission profile for the operation scope. |
Set<Object> |
getScope()
Get the set of objects that form the current scope. |
boolean |
include(Object object)
Determine if the object should be included in the operation. |
void |
validate()
Validate the scope. |
Method Detail |
---|
Set<Object> getScope()
Set
of objects that the operation includes.Map<Object,Exception> getExceptions()
boolean include(Object object)
object
- the object to examine for eligibility in the operation this
represents
#exiting(IComponent)
void exiting(Object object, boolean processed)
include(Object)
. This method serves to allow the scope to do any
required post-processing after the include(Object)
request. A
flag indicates if the object was actually processed or not.
object
- an object that was previously examined with
include(Object)
processed
- true if the component was processedvoid exception(Object object, Exception e)
object
- the object in which the exception occurrede
- the exception that occurredvoid validate()
IllegalStateException
encapsulating the exceptions that occurred
during the scope.
IllegalStateException
- if there was an exceptionIPermissionProfile getPermissionProfile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |