com.sun.enterprise.admin.cli.schemadoc
Class GenerateDomainSchema

java.lang.Object
  extended by com.sun.enterprise.admin.cli.schemadoc.GenerateDomainSchema
All Implemented Interfaces:
AdminCommand

@Service(name="generate-domain-schema")
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
@ExecuteOn(value=DAS)
@TargetType(value={DOMAIN,DAS,STANDALONE_INSTANCE,CLUSTER})
public class GenerateDomainSchema
extends Object
implements AdminCommand


Field Summary
private  Map<String,ClassDef> classDefs
           
(package private)  File docDir
           
private  Domain domain
           
private  String format
           
private  org.jvnet.hk2.component.Habitat habitat
           
private  Boolean showDeprecated
           
private  Boolean showSubclasses
           
 
Constructor Summary
GenerateDomainSchema()
           
 
Method Summary
 void execute(AdminCommandContext context)
           
private  void findClasses(Map<String,ClassDef> classDefs, List<JarFile> jarFiles)
           
private  SchemaOutputFormat getFormat()
           
private  List<JarFile> locateJarFiles(String modulesDir)
           
private  ClassDef parse(InputStream is)
           
static String toClassName(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domain

private Domain domain

habitat

private org.jvnet.hk2.component.Habitat habitat

format

private String format

docDir

File docDir

classDefs

private Map<String,ClassDef> classDefs

showSubclasses

private Boolean showSubclasses

showDeprecated

private Boolean showDeprecated
Constructor Detail

GenerateDomainSchema

public GenerateDomainSchema()
Method Detail

execute

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

getFormat

private SchemaOutputFormat getFormat()

locateJarFiles

private List<JarFile> locateJarFiles(String modulesDir)
                              throws IOException
Throws:
IOException

findClasses

private void findClasses(Map<String,ClassDef> classDefs,
                         List<JarFile> jarFiles)
                  throws IOException
Throws:
IOException

parse

private ClassDef parse(InputStream is)
                throws IOException
Throws:
IOException

toClassName

public static String toClassName(String value)


Copyright © 2012 GlassFish Community. All Rights Reserved.