Package org.glassfish.deployment.admin
Class InstanceDeployCommand
- java.lang.Object
-
- org.glassfish.api.deployment.OpsParams
-
- org.glassfish.api.deployment.DeployCommandParameters
-
- org.glassfish.deployment.admin.InstanceDeployCommandParameters
-
- org.glassfish.deployment.admin.InstanceDeployCommand
-
- All Implemented Interfaces:
AdminCommand,AdminCommandSecurity.AccessCheckProvider,CommandParameters
@Service(name="_deploy") @PerLookup @ExecuteOn(INSTANCE) public class InstanceDeployCommand extends InstanceDeployCommandParameters implements AdminCommand, AdminCommandSecurity.AccessCheckProvider
The deploy command that runs on instance- Author:
- hzhang_jn, tjquinn
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.glassfish.deployment.admin.InstanceDeployCommandParameters
InstanceDeployCommandParameters.ParameterNames
-
Nested classes/interfaces inherited from class org.glassfish.api.deployment.OpsParams
OpsParams.Command, OpsParams.Origin
-
-
Field Summary
Fields Modifier and Type Field Description protected Serverserver-
Fields inherited from class org.glassfish.deployment.admin.InstanceDeployCommandParameters
appprops, generatedcontent, preservedcontextroot, previousEnabledAttributes, previousVirtualServers
-
Fields inherited from class org.glassfish.api.deployment.DeployCommandParameters
altdd, asyncreplication, availabilityenabled, clientJarRequested, contextroot, createtables, dbvendorname, deploymentorder, deploymentplan, description, dropandcreatetables, enabled, force, forceName, generatermistubs, hotDeploy, isredeploy, keepfailedstubs, keepreposdir, keepstate, lbenabled, libraries, loadOnly, logReportedErrors, metadataChanged, name, path, precompilejsp, previousContextRoot, properties, property, retrieve, runtimealtdd, skipDSFailure, sourcesChanged, target, type, uniquetablenames, verify, virtualservers
-
Fields inherited from class org.glassfish.api.deployment.OpsParams
_classicstyle, command, origin
-
-
Constructor Summary
Constructors Constructor Description InstanceDeployCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(AdminCommandContext ctxt)Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter valuesCollection<? extends AccessRequired.AccessCheck>getAccessChecks()Returns theAccessChecks the command has computed at runtime which should be included in the authorization, added to checks that secure admin infers from the command's CRUD or RestEndpoint characteristics orAccessRequiredannotations.-
Methods inherited from class org.glassfish.api.deployment.DeployCommandParameters
getAltdd, getContextRoot, getDBVendorName, getDeploymentPlan, getPath, getPreviousContextRoot, getRetrieve, getRuntimeAltdd, getSourcesChanged, getType, getVirtualServers, isAsyncReplication, isAvailabilityEnabled, isClientJarRequested, isEnabled, isForce, isForceName, isGenerateRMIStubs, isHotDeploy, isKeepFailedStubs, isKeepReposDir, isLoadOnly, isLogReportedErrors, isMetadataChanged, isPrecompileJsp, isRedeploy, isSkipDSFailure, isVerify, libraries, name, setContextRoot
-
Methods inherited from class org.glassfish.api.deployment.OpsParams
getCommand, getOrigin
-
-
-
-
Field Detail
-
server
@Inject @Named("default-instance-name") protected Server server
-
-
Method Detail
-
getAccessChecks
public Collection<? extends AccessRequired.AccessCheck> getAccessChecks()
Description copied from interface:AdminCommandSecurity.AccessCheckProviderReturns theAccessChecks the command has computed at runtime which should be included in the authorization, added to checks that secure admin infers from the command's CRUD or RestEndpoint characteristics orAccessRequiredannotations.- Specified by:
getAccessChecksin interfaceAdminCommandSecurity.AccessCheckProvider- Returns:
- the
AccessChecks
-
execute
public void execute(AdminCommandContext ctxt)
Description copied from interface:AdminCommandExecutes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter values- Specified by:
executein interfaceAdminCommand- Parameters:
ctxt- information
-
-