public class StatelessClass extends Object implements GenerableClass
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
exposedByClass
Identify if the exposed type is a class or interface.
|
(package private) List<ExposedMethod> |
exposedMethods
A list of methods that will be wrapped up.
|
(package private) long |
identifaction
This attribute will be part of the class name.
|
(package private) String |
implementationCanonicalName
The implementation type as Canonical Name notation.
|
(package private) String |
packageName
The package where the new class should be placed.
|
(package private) List<ExposedMethod> |
postConstructMethods
A list of methods that run after construct the Stateless service.
|
(package private) List<ExposedMethod> |
preDestroyMethods
A list of methods that run before destroy the Stateless service.
|
(package private) String |
serviceIdentificationName
An easy name to find the class when two or more services are provided to
a same type.
|
(package private) String |
typeCanonicalName
The exposed type as Canonical Name notation.
|
(package private) String |
typeName
The exposed type simple name.
|
| Constructor and Description |
|---|
StatelessClass(String serviceIdentificationName,
String typeCanonicalName,
String implementationCanonicalName,
boolean exposedByClass,
List<ExposedMethod> exposedMethods,
List<ExposedMethod> postConstructMethods,
List<ExposedMethod> preDestroyMethods) |
final long identifaction
final String serviceIdentificationName
final String packageName
final String typeCanonicalName
final String typeName
final String implementationCanonicalName
final boolean exposedByClass
final List<ExposedMethod> exposedMethods
final List<ExposedMethod> postConstructMethods
final List<ExposedMethod> preDestroyMethods
public StatelessClass(String serviceIdentificationName, String typeCanonicalName, String implementationCanonicalName, boolean exposedByClass, List<ExposedMethod> exposedMethods, List<ExposedMethod> postConstructMethods, List<ExposedMethod> preDestroyMethods)
serviceIdentificationName - typeCanonicalName - implementationCanonicalName - exposedByClass - exposedMethods - postConstructMethods - preDestroyMethods - private long createIdentifier()
private String exposedMethodsAsString()
public Long getIdentifaction()
public String getServiceIdentificationName()
public String getPackageName()
public String getTypeCanonicalName()
public String getTypeName()
public String getImplementationCanonicalName()
public boolean isExposedByClass()
public List<ExposedMethod> getExposedMethods()
public String getGeneratedClassCanonicalName()
getGeneratedClassCanonicalName in interface GenerableClasspublic static StatelessClass from(TypeElement type)
public static boolean isImplementingClass(String typeCanonicalName, TypeElement type)
static List<ExposedMethod> retrieveExposedMethods(TypeElement type)
static List<ExposedMethod> retrieveMethodsAnnotatedWith(TypeElement type, Class<? extends Annotation>... annotations)
static boolean isExposedMethod(Element method)
static boolean isPrivate(ExecutableElement method)
Copyright © 2015. All rights reserved.