Package org.glassfish.api.admin
Interface CommandAspectImpl<T extends Annotation>
- Type Parameters:
T
- aspect annotation.
- All Known Implementing Classes:
AsyncImpl
,CommandAspectBase
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
Modifier and TypeMethodDescriptioncreateWrapper
(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 Details
-
init
Execute when command is just completely initialized, i..e injected with parameters. -
done
Execute when command is finished successfully or not. -
createWrapper
This methods can be used to wrap generic functionality around command execute.
-