Package org.glassfish.common.util.admin
Class GenericCommandModel
java.lang.Object
org.glassfish.api.admin.CommandModel
org.glassfish.common.util.admin.GenericCommandModel
public class GenericCommandModel
extends org.glassfish.api.admin.CommandModel
-
Nested Class Summary
Nested classes/interfaces inherited from class org.glassfish.api.admin.CommandModel
org.glassfish.api.admin.CommandModel.ParamModel -
Constructor Summary
ConstructorsConstructorDescriptionGenericCommandModel(Class<?> targetType, boolean useAnnotations, org.glassfish.api.admin.ExecuteOn cluster, org.glassfish.api.I18n i18n, LocalStringManager localStrings, org.jvnet.hk2.config.DomDocument document, String commandName, boolean managedJob, Class<?>... extraTypes) GenericCommandModel constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.glassfish.api.admin.CommandModel.ParamModel model) org.glassfish.api.admin.ExecuteOnClass<?> org.glassfish.api.admin.CommandModel.ParamModelgetModelFor(String paramName) booleanMethods inherited from class org.glassfish.api.admin.CommandModel
getParameters, getParamName, unknownOptionsAreOperands
-
Constructor Details
-
GenericCommandModel
public GenericCommandModel(Class<?> targetType, boolean useAnnotations, org.glassfish.api.admin.ExecuteOn cluster, org.glassfish.api.I18n i18n, LocalStringManager localStrings, org.jvnet.hk2.config.DomDocument document, String commandName, boolean managedJob, Class<?>... extraTypes) GenericCommandModel constructor.- Parameters:
targetType- the ConfigBeanProxy class that may have additional @Param annotations for the command,useAnnotations- if true, use the annotations on the targetType class to define the parameterscluster- the @ExecuteOn annotation, if anyi18n- the @I18n annotation, if anylocalStrings- where to find strings for the commanddocument- the DomDocument for the commandcommandName- the name of the commandextraTypes- any extra types that might also define parameters for the commandsupportsProgress-trueonly if command working with ProgressStatus
-
-
Method Details
-
getLocalizedDescription
- Specified by:
getLocalizedDescriptionin classorg.glassfish.api.admin.CommandModel
-
getUsageText
- Specified by:
getUsageTextin classorg.glassfish.api.admin.CommandModel
-
getCommandName
- Specified by:
getCommandNamein classorg.glassfish.api.admin.CommandModel
-
getModelFor
- Specified by:
getModelForin classorg.glassfish.api.admin.CommandModel
-
getParametersNames
- Specified by:
getParametersNamesin classorg.glassfish.api.admin.CommandModel
-
getCommandClass
- Specified by:
getCommandClassin classorg.glassfish.api.admin.CommandModel
-
getClusteringAttributes
public org.glassfish.api.admin.ExecuteOn getClusteringAttributes()- Specified by:
getClusteringAttributesin classorg.glassfish.api.admin.CommandModel
-
add
public void add(org.glassfish.api.admin.CommandModel.ParamModel model) - Specified by:
addin classorg.glassfish.api.admin.CommandModel
-
isManagedJob
public boolean isManagedJob()- Specified by:
isManagedJobin classorg.glassfish.api.admin.CommandModel
-