Package org.glassfish.api.admin
Interface CommandAspectImpl<T extends Annotation>
-
- Type Parameters:
T
- aspect annotation.
- All Known Implementing Classes:
AsyncImpl
,CommandAspectBase
@Contract public interface CommandAspectImpl<T extends Annotation>
Interface for defining aspects for AdminCommands. This is used with the CommandAspect annotation to implement an annotation that can be used to add functionality around commands. See the @Async annotation for an example of how this is used. See empty CommandAspectBase implementation to extend.- Author:
- andriy.zhdanov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AdminCommand
createWrapper(T ann, CommandModel model, AdminCommand command, ActionReport report)
This methods can be used to wrap generic functionality around command execute.void
done(T ann, AdminCommand command, Job instance)
Execute when command is finished successfully or not.void
init(T ann, AdminCommand command, AdminCommandContext context, Job instance)
Execute when command is just completely initialized, i..e injected with parameters.
-
-
-
Method Detail
-
init
void init(T ann, AdminCommand command, AdminCommandContext context, Job instance)
Execute when command is just completely initialized, i..e injected with parameters.
-
done
void done(T ann, AdminCommand command, Job instance)
Execute when command is finished successfully or not.
-
createWrapper
AdminCommand createWrapper(T ann, CommandModel model, AdminCommand command, ActionReport report)
This methods can be used to wrap generic functionality around command execute.
-
-