public interface ActivatorCreatorCodeGen
Codegen request options applicable as part of the overall
ActivatorCreatorRequest.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default prefix forclassPrefixName().static final StringThe default prefix forclassPrefixName()for tests/testing. -
Method Summary
Modifier and TypeMethodDescriptionTypically populated as "test" if test scoped, otherwise left blank.The extra source code class comments that needs to be appended to the implementation.The extra source code that needs to be appended to the implementation.The set of external modules used and/or required.The map of service type names to access level.TheContract's associated with each service type.TheExternalContractsassociated with each service type.The class hierarchy from Object down to and including this service type.The injection point dependencies for each service type.The service type's interception plan.The map of service type names to whether they are abstract.ThePostConstructmethod name for each service type.ThePreDestroymethod name for each service type.The set ofQualifier's for each service type.The declaredRunLevelvalue for each service type.The declaredScopevalue for each service type.Optionally, for each service, provide the generic declaration portion for the activator generic class name.Optionally, for each service type also provide its parent (super class) service type mapping.The set of type names that the service type acts as an "is provider" for (i.e.,Provider).The declaredWeightedvalue for each service type.
-
Field Details
-
DEFAULT_CLASS_PREFIX_NAME
The default prefix forclassPrefixName().- See Also:
-
DEFAULT_TEST_CLASS_PREFIX_NAME
The default prefix forclassPrefixName()for tests/testing.- See Also:
-
-
Method Details
-
serviceTypeToParentServiceTypes
Optionally, for each service type also provide its parent (super class) service type mapping.- Returns:
- the service type to parent (super class) service type mapping
-
serviceTypeHierarchy
The class hierarchy from Object down to and including this service type.- Returns:
- the map of service type names to its class hierarchy
-
serviceTypeToActivatorGenericDecl
Optionally, for each service, provide the generic declaration portion for the activator generic class name.- Returns:
- the generic declaration portion for the activator generic class name
-
serviceTypeAccessLevels
Map<TypeName,ElementInfo.Access> serviceTypeAccessLevels()The map of service type names to access level.- Returns:
- the map of service type names to each respective access level
-
serviceTypeIsAbstractTypes
The map of service type names to whether they are abstract. If not found then assume concrete.- Returns:
- the map of service type names to whether they are abstract
-
serviceTypeContracts
TheContract's associated with each service type.- Returns:
- the map of service type names to
Contract's implemented
-
serviceTypeExternalContracts
TheExternalContractsassociated with each service type.- Returns:
- the map of service type names to
ExternalContractsimplemented
-
serviceTypeInjectionPointDependencies
Map<TypeName,DependenciesInfo> serviceTypeInjectionPointDependencies()The injection point dependencies for each service type.- Returns:
- the map of service type names to injection point dependencies info
-
serviceTypePreDestroyMethodNames
ThePreDestroymethod name for each service type.- Returns:
- the map of service type names to PreDestroy method names
- See Also:
-
serviceTypePostConstructMethodNames
ThePostConstructmethod name for each service type.- Returns:
- the map of service type names to PostConstruct method names
- See Also:
-
serviceTypeWeights
The declaredWeightedvalue for each service type.- Returns:
- the map of service type names to declared weight
-
serviceTypeRunLevels
The declaredRunLevelvalue for each service type.- Returns:
- the map of service type names to declared run level
-
serviceTypeScopeNames
The declaredScopevalue for each service type.- Returns:
- the map of service type names to declared scope name
-
serviceTypeQualifiers
Map<TypeName,Set<QualifierAndValue>> serviceTypeQualifiers()The set ofQualifier's for each service type.- Returns:
- the map of service type names to qualifiers
-
serviceTypeToProviderForTypes
The set of type names that the service type acts as an "is provider" for (i.e.,Provider).- Returns:
- the map of service type names to "is provider" flag values
-
serviceTypeInterceptionPlan
Map<TypeName,InterceptionPlan> serviceTypeInterceptionPlan()The service type's interception plan.- Returns:
- the map of service type names to the interception plan
-
extraCodeGen
The extra source code that needs to be appended to the implementation.- Returns:
- the map of service type names to the extra source code that should be added
-
extraClassComments
The extra source code class comments that needs to be appended to the implementation.- Returns:
- the map of service type names to the extra source code class comments that should be added
-
modulesRequired
The set of external modules used and/or required.- Returns:
- the set of external modules used and/or required
-
classPrefixName
String classPrefixName()Typically populated as "test" if test scoped, otherwise left blank.- Returns:
- production or test scope
-