Interface ScheduleTaskApplication<D extends ScheduleTaskData>
- Type Parameters:
D- Type of schedule task data.
public interface ScheduleTaskApplication<D extends ScheduleTaskData>
Definition of an application providing persistency and execution means for a schedule task.
- Since:
- 5.2.14
-
Method Summary
Modifier and TypeMethodDescriptionCreate a new custom data container for storing application specific configuration information.<A> AgetAspect(ApplicationAspectType<A> type) Look up a specific aspect that may be supported by this application.@Nullable StringgetDescription(@NotNull Locale locale) Provides a description for this application, preferably respecting the given locale.@NotNull ScheduleTaskExecutor<D>Provides an executor providing the application logic.@NotNull StringProvides a name for this application, preferably respecting the given locale.booleanisApplicable(@NotNull ScheduleTaskDefinitionContext context) Indicates the applicability of this application's tasks wrt. the given task definition context.
-
Method Details
-
getAspect
Look up a specific aspect that may be supported by this application.- Type Parameters:
A- The object type of the aspect.- Parameters:
type- The type of aspect.- Returns:
- An aspect implementer or
null, if the aspect is not supported. - Since:
- 5.2.16
-
getName
Provides a name for this application, preferably respecting the given locale.- Parameters:
locale- The locale the name is requested for.- Returns:
- The application name.
- Since:
- 5.2.14
-
getDescription
Provides a description for this application, preferably respecting the given locale.- Parameters:
locale- The locale the description is requested for.- Returns:
- The application description or
null. - Since:
- 5.2.14
-
isApplicable
Indicates the applicability of this application's tasks wrt. the given task definition context.- Parameters:
context- The context.- Returns:
true, if applicable for use.- Since:
- 5.2.16
-
getExecutor
Provides an executor providing the application logic.- Returns:
- The application executor.
- Since:
- 5.2.14
-
createData
Create a new custom data container for storing application specific configuration information.- Returns:
- A new data container.
- Since:
- 5.2.14
-