Interface ManagedObjectContext
- All Known Implementing Classes:
ManagedObjectUserStandAlone,MockManagedObjectContext
public interface ManagedObjectContext
Context for the
ManagedObject.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionObtains the name thisManagedObjectis bound under.Obtains theLoggerfor theManagedObject.<R,T extends Throwable>
Rrun(ProcessSafeOperation<R, T> operation) Undertakes aProcessSafeOperation.
-
Method Details
-
getBoundName
String getBoundName()Obtains the name this
ManagedObjectis bound under.This is useful to have a unique name identifying the
ManagedObject.- Returns:
- Name this
ManagedObjectis bound under.
-
getLogger
Logger getLogger()Obtains theLoggerfor theManagedObject.- Returns:
Loggerfor theManagedObject.
-
run
Undertakes aProcessSafeOperation.- Type Parameters:
R- Return type from operationT- PossibleThrowabletype from operation.- Parameters:
operation-ProcessSafeOperation.- Returns:
- Return value.
- Throws:
T- PossibleThrowable.
-