Class ResourcesGeneratorBase
- java.lang.Object
-
- org.glassfish.admin.rest.generator.ResourcesGeneratorBase
-
- All Implemented Interfaces:
ResourcesGenerator
- Direct Known Subclasses:
ASMResourcesGenerator
,TextResourcesGenerator
public abstract class ResourcesGeneratorBase extends Object implements ResourcesGenerator
- Author:
- Mitesh Meswani, Ludovic Champenois
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.admin.rest.generator.ResourcesGenerator
ResourcesGenerator.Strategy
-
-
Field Summary
Fields Modifier and Type Field Description static Map<String,org.glassfish.admin.rest.generator.CollectionLeafMetaData>
configBeanToCollectionLeafMetaData
static Map<String,String>
configBeanToPOSTCommand
-
Constructor Summary
Constructors Constructor Description ResourcesGeneratorBase(org.glassfish.hk2.api.ServiceLocator habitat)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
alreadyGenerated(String className)
void
configModelVisited(ConfigModel model)
void
generateList(ConfigModel model, DomDocument domDocument)
void
generateSingle(ConfigModel model, DomDocument domDocument)
Generate REST resource for a single config model.static String
getBeanName(String elementName)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.glassfish.admin.rest.generator.ResourcesGenerator
endGeneration, getClassWriter
-
-
-
-
Method Detail
-
generateSingle
public void generateSingle(ConfigModel model, DomDocument domDocument)
Generate REST resource for a single config model.- Specified by:
generateSingle
in interfaceResourcesGenerator
-
generateList
public void generateList(ConfigModel model, DomDocument domDocument)
-
configModelVisited
public void configModelVisited(ConfigModel model)
-
alreadyGenerated
protected boolean alreadyGenerated(String className)
- Parameters:
className
-- Returns:
- true if the given className is already generated. false otherwise.
-
-