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 Application
Holds a reference to theApplication
instance associated with thisExecutor
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Application
Retrieves theApplication
instance associated with this executor.final TransactionManager
Retrieves theTransactionManager
instance associated with the currentApplication
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.common.Executable
act, execute, run
-
Field Details
-
application
Holds a reference to theApplication
instance 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 newExecutor
object with the specifiedApplication
.- Parameters:
a
- theApplication
instance to associate with this executor
-
-
Method Details
-
getApplication
Retrieves theApplication
instance associated with this executor.- Returns:
- the
Application
instance used by this executor
-
getTransactionManager
Retrieves theTransactionManager
instance associated with the currentApplication
.- Returns:
- The
TransactionManager
instance from the associatedApplication
, or null if noTransactionManager
is available.
-