public interface LayerProvider
| Modifier and Type | Field and Description |
|---|---|
static int |
CORE_LAYER_PRIORITY
The priority of the core layers.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLayerPosition()
Returns the position of this layer relative to others.
|
MemberTypeAdditions |
getMemberTypeAdditions(String callerMID,
String methodIdentifier,
org.springframework.roo.model.JavaType targetEntity,
org.springframework.roo.model.JavaType idType,
boolean autowire,
MethodParameter... methodParameters)
A layer provider should determine if it can provide
MemberTypeAdditions for a given target entity and construct it
accordingly. |
MemberTypeAdditions |
getMemberTypeAdditions(String callerMID,
String methodIdentifier,
org.springframework.roo.model.JavaType targetEntity,
org.springframework.roo.model.JavaType idType,
MethodParameter... methodParameters)
A layer provider should determine if it can provide
MemberTypeAdditions for a given target entity and construct it
accordingly. |
int |
getPriority()
Returns the priority of this layer relative to other implementations with
the same position.
|
static final int CORE_LAYER_PRIORITY
int getLayerPosition()
MemberTypeAdditions getMemberTypeAdditions(String callerMID, String methodIdentifier, org.springframework.roo.model.JavaType targetEntity, org.springframework.roo.model.JavaType idType, boolean autowire, MethodParameter... methodParameters)
MemberTypeAdditions for a given target entity and construct it
accordingly. If it can not provide the requested functionality it should
simply return null;callerMID - the caller's metadata IDmethodIdentifier - specifies the method which is being requestedtargetEntity - specifies the target entityidType - specifies the ID type used by the target entityautowire - specified where the addition should be autowired (if
applicable)methodParameters - parameters which are passed in to the methodMemberTypeAdditions if a layer provider can offer this
functionality, null otherwiseMemberTypeAdditions getMemberTypeAdditions(String callerMID, String methodIdentifier, org.springframework.roo.model.JavaType targetEntity, org.springframework.roo.model.JavaType idType, MethodParameter... methodParameters)
MemberTypeAdditions for a given target entity and construct it
accordingly. If it can not provide the requested functionality it should
simply return null;callerMID - the caller's metadata IDmethodIdentifier - specifies the method which is being requestedtargetEntity - specifies the target entityidType - specifies the ID type used by the target entitymethodParameters - parameters which are passed in to the methodMemberTypeAdditions if a layer provider can offer this
functionality, null otherwiseint getPriority()
CORE_LAYER_PRIORITY in order to
take precedence over the core LayerProvidersgetLayerPosition()Copyright © 2009–2018 Pivotal Software, Inc.. All rights reserved.