public abstract class AbstractServiceGenerator extends AbstractVelocityGenerator
Modifier and Type | Field and Description |
---|---|
protected static String |
TEMPLATE |
CLIENT_PACKAGE, SHARED_PACKAGE, SUFFIX
Modifier | Constructor and Description |
---|---|
protected |
AbstractServiceGenerator(TypeOracle typeOracle,
Logger logger,
javax.inject.Provider<org.apache.velocity.VelocityContext> velocityContextProvider,
org.apache.velocity.app.VelocityEngine velocityEngine,
GeneratorUtil generatorUtil,
GeneratorFactory generatorFactory,
JClassType service) |
Modifier and Type | Method and Description |
---|---|
protected void |
generateChildRestService(JMethod method) |
protected void |
generateMethodHierarchy(JMethod method) |
protected void |
generateMethods() |
protected void |
generateRestAction(JMethod method) |
protected String |
getPackage() |
protected abstract ServiceBinding |
getServiceBinding() |
protected boolean |
isAction(JMethod method) |
protected boolean |
isSubService(JMethod method) |
protected void |
populateVelocityContext(org.apache.velocity.VelocityContext velocityContext) |
concatenatePath, extractPath, getGeneratorUtil, getLogger, getTypeOracle, mergeTemplate, normalizePath
protected static final String TEMPLATE
protected AbstractServiceGenerator(TypeOracle typeOracle, Logger logger, javax.inject.Provider<org.apache.velocity.VelocityContext> velocityContextProvider, org.apache.velocity.app.VelocityEngine velocityEngine, GeneratorUtil generatorUtil, GeneratorFactory generatorFactory, JClassType service)
protected String getPackage()
getPackage
in class AbstractVelocityGenerator
protected abstract ServiceBinding getServiceBinding()
protected void populateVelocityContext(org.apache.velocity.VelocityContext velocityContext) throws UnableToCompleteException
populateVelocityContext
in class AbstractVelocityGenerator
UnableToCompleteException
protected void generateMethods() throws UnableToCompleteException
UnableToCompleteException
protected void generateMethodHierarchy(JMethod method) throws UnableToCompleteException
UnableToCompleteException
protected boolean isAction(JMethod method) throws UnableToCompleteException
UnableToCompleteException
protected boolean isSubService(JMethod method) throws UnableToCompleteException
UnableToCompleteException
protected void generateChildRestService(JMethod method) throws UnableToCompleteException
UnableToCompleteException
protected void generateRestAction(JMethod method) throws UnableToCompleteException
UnableToCompleteException
Copyright © 2010–2014 Arcbees. All rights reserved.