Package com.storedobject.ui
Class Executor
java.lang.Object
com.storedobject.ui.Executor
- All Implemented Interfaces:
Executable,Runnable
- Direct Known Subclasses:
ObjectViewer
Represents an abstract base class for defining an executable component.
The
Executor class provides a structured framework for execution-related
functionality by managing an associated Application instance.
Subclasses are expected to define specific execution behavior.
The Executor class implements the Executable interface, which
signifies its ability to execute designated actions or processes.- Author:
- Syam
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ApplicationHolds a reference to theApplicationinstance associated with thisExecutor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ApplicationRetrieves theApplicationinstance associated with this executor.final TransactionManagerRetrieves theTransactionManagerinstance associated with the currentApplication.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.common.Executable
act, execute, run
-
Field Details
-
application
Holds a reference to theApplicationinstance associated with thisExecutor. This variable is immutable and is initialized through the constructor. It provides access to application-level settings and resources required for execution-related operations within theExecutor.
-
-
Constructor Details
-
Executor
Constructs a newExecutorobject with the specifiedApplication.- Parameters:
a- theApplicationinstance to associate with this executor
-
-
Method Details
-
getApplication
Retrieves theApplicationinstance associated with this executor.- Returns:
- the
Applicationinstance used by this executor
-
getTransactionManager
Retrieves theTransactionManagerinstance associated with the currentApplication.- Returns:
- The
TransactionManagerinstance from the associatedApplication, or null if noTransactionManageris available.
-