org.glassfish.config.support
Class GenericCreateCommand

java.lang.Object
  extended by org.glassfish.config.support.GenericCrudCommand
      extended by org.glassfish.config.support.GenericCreateCommand
All Implemented Interfaces:
AdminCommand, CommandModelProvider, org.jvnet.hk2.component.PostConstruct

@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class GenericCreateCommand
extends GenericCrudCommand
implements AdminCommand, org.jvnet.hk2.component.PostConstruct, CommandModelProvider

Generic create command implementation. This command can create POJO configuration objects from an asadmin command invocation parameters. So far, such POJO must be ConfigBeanProxy subclasses and be annotated with the Param annotation to property function.

Author:
Jerome Dochez

Field Summary
 
Fields inherited from class org.glassfish.config.support.GenericCrudCommand
level, localStrings
 
Constructor Summary
GenericCreateCommand()
           
 
Method Summary
 void execute(AdminCommandContext context)
           
 CommandModel getModel()
           
 void postConstruct()
           
 
Methods inherited from class org.glassfish.config.support.GenericCrudCommand
convertStringToProperties, elementName, getAnnotation, getInjectionResolver, loadClass, setInjectionResolver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericCreateCommand

public GenericCreateCommand()
Method Detail

postConstruct

public void postConstruct()
Specified by:
postConstruct in interface org.jvnet.hk2.component.PostConstruct
Overrides:
postConstruct in class GenericCrudCommand

execute

public void execute(AdminCommandContext context)
Specified by:
execute in interface AdminCommand

getModel

public CommandModel getModel()
Specified by:
getModel in interface CommandModelProvider


Copyright © 2012 GlassFish Community. All Rights Reserved.