
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,
ServiceDefinitions serviceDefinitions,
GeneratorFactory generatorFactory,
JClassType service) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
generateChildRestService(JMethod method) |
protected void |
generateMethods() |
protected void |
generateRestAction(JMethod method) |
protected String |
getPackage() |
protected abstract ServiceBinding |
getServiceBinding() |
protected boolean |
isRestService(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, ServiceDefinitions serviceDefinitions, 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 boolean isRestService(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.