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, normalizePathprotected 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 AbstractVelocityGeneratorprotected abstract ServiceBinding getServiceBinding()
protected void populateVelocityContext(org.apache.velocity.VelocityContext velocityContext)
throws UnableToCompleteException
populateVelocityContext in class AbstractVelocityGeneratorUnableToCompleteExceptionprotected void generateMethods()
throws UnableToCompleteException
UnableToCompleteExceptionprotected void generateMethodHierarchy(JMethod method) throws UnableToCompleteException
UnableToCompleteExceptionprotected boolean isAction(JMethod method) throws UnableToCompleteException
UnableToCompleteExceptionprotected boolean isSubService(JMethod method) throws UnableToCompleteException
UnableToCompleteExceptionprotected void generateChildRestService(JMethod method) throws UnableToCompleteException
UnableToCompleteExceptionprotected void generateRestAction(JMethod method) throws UnableToCompleteException
UnableToCompleteExceptionCopyright © 2010–2014 Arcbees. All rights reserved.