public class LayerTypeMatcher extends AnnotatedTypeMatcher
Matcher used for layering support; identifies layer components
(services, repositories, etc) by the presence of a given tag, and sets each
such component's CustomDataKeys.LAYER_TYPE tag to a list of the
domain types managed by that component (as a
List<JavaType>).| Constructor and Description |
|---|
LayerTypeMatcher(org.springframework.roo.model.JavaType layerAnnotation,
org.springframework.roo.model.JavaSymbolName domainTypesAttribute)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getTagValue(MemberHoldingTypeDetails type)
Returns the value associated with the given key that should be applied to
the matched instance.
|
getCustomDataKey, matchespublic LayerTypeMatcher(org.springframework.roo.model.JavaType layerAnnotation,
org.springframework.roo.model.JavaSymbolName domainTypesAttribute)
layerAnnotation - the annotation type to match on and read
attributes of (required)domainTypesAttribute - the attribute of the above annotation that
identifies the domain type(s) being managed (required)public Object getTagValue(MemberHoldingTypeDetails type)
MatchergetTagValue in interface Matcher<MemberHoldingTypeDetails>getTagValue in class AnnotatedTypeMatchertype - the custom data keyCopyright © 2009–2018 Pivotal Software, Inc.. All rights reserved.