Package org.glassfish.api.admin
Class CommandAspectBase<T extends Annotation>
- java.lang.Object
-
- org.glassfish.api.admin.CommandAspectBase<T>
-
- All Implemented Interfaces:
CommandAspectImpl<T>
- Direct Known Subclasses:
AsyncImpl
public class CommandAspectBase<T extends Annotation> extends Object implements CommandAspectImpl<T>
Empty implementation of CommandAspectImpl.- Author:
- andriy.zhdanov
-
-
Constructor Summary
Constructors Constructor Description CommandAspectBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdminCommandcreateWrapper(T ann, CommandModel model, AdminCommand command, ActionReport report)This methods can be used to wrap generic functionality around command execute.voiddone(T ann, AdminCommand command, Job instance)Execute when command is finished successfully or not.voidinit(T ann, AdminCommand command, AdminCommandContext context, Job instance)Execute when command is just completely initialized, i..e injected with parameters.
-
-
-
Method Detail
-
init
public void init(T ann, AdminCommand command, AdminCommandContext context, Job instance)
Execute when command is just completely initialized, i..e injected with parameters.- Specified by:
initin interfaceCommandAspectImpl<T extends Annotation>
-
done
public void done(T ann, AdminCommand command, Job instance)
Execute when command is finished successfully or not.- Specified by:
donein interfaceCommandAspectImpl<T extends Annotation>
-
createWrapper
public AdminCommand createWrapper(T ann, CommandModel model, AdminCommand command, ActionReport report)
This methods can be used to wrap generic functionality around command execute.- Specified by:
createWrapperin interfaceCommandAspectImpl<T extends Annotation>
-
-