|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.roo.classpath.customdata.taggers.CustomDataKeyDecoratorImpl
@Service public class CustomDataKeyDecoratorImpl
An implementation of CustomDataKeyDecorator.
| Constructor Summary | |
|---|---|
CustomDataKeyDecoratorImpl()
|
|
| Method Summary | |
|---|---|
MemberDetails |
decorate(String requestingClass,
MemberDetails memberDetails)
Evaluates the incoming MemberDetails and either (a) returns the
same instance if no changes are necessary or (b) returns a new instance
of MemberDetails if changes are needed. |
MemberDetails |
decorateTypes(String requestingClass,
MemberDetails memberDetails)
Performs essentially the same function as decorate but only decorates MemberHoldingTypeDetails instances and ignores the type's
members. |
List<ConstructorMatcher> |
getConstructorTaggers()
|
List<FieldMatcher> |
getFieldTaggers()
|
String |
getInflectorPlural(String term,
Locale locale)
This method returns the plural term as per inflector. |
List<MethodMatcher> |
getMethodTaggers()
|
List<TypeMatcher> |
getTypeTaggers()
|
void |
registerMatcher(String addingClass,
Matcher<? extends org.springframework.roo.model.CustomDataAccessor> matcher)
Registers the given matcher on behalf of the class with the given fully- qualified name. |
void |
registerMatchers(Class<?> addingClass,
Matcher<? extends org.springframework.roo.model.CustomDataAccessor>... matchers)
Registers the given matchers on behalf of the given class |
void |
unregisterMatchers(Class<?> addingClass)
Unregisters any matchers registered by the given class |
void |
unregisterMatchers(String addingClass)
Unregisters any matchers registered by the given class |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomDataKeyDecoratorImpl()
| Method Detail |
|---|
public MemberDetails decorate(String requestingClass,
MemberDetails memberDetails)
MemberDetailsDecoratorMemberDetails and either (a) returns the
same instance if no changes are necessary or (b) returns a new instance
of MemberDetails if changes are needed.
This method will be called repeatedly until such time as every
MemberDetailsDecorator returns the same MemberDetails
instance as was passed. It is therefore essential that a
new instance is only returned if an actual change to the result is required.
An implementation can safely return the same MemberDetails as it
was passed if in doubt, as it will always be re-invoked later on if
another decorator changes the MemberDetails instance. Thus even
decorators that depend on other decorators populating the
MemberDetails (eg with new CustomDataAccessor
information) can be executed in any order whatsoever, as they need only
look for the expected data and return the same MemberDetails if
it is not found.
decorate in interface MemberDetailsDecoratorrequestingClass - the fully-qualified class name requesting the
member details (required)memberDetails - the current member holders (required)
public MemberDetails decorateTypes(String requestingClass,
MemberDetails memberDetails)
MemberDetailsDecoratorMemberHoldingTypeDetails instances and ignores the type's
members.
decorateTypes in interface MemberDetailsDecoratorrequestingClass - the fully-qualified class name requesting the
member details (required)memberDetails - the current member holders (required)
public List<ConstructorMatcher> getConstructorTaggers()
public List<FieldMatcher> getFieldTaggers()
public String getInflectorPlural(String term,
Locale locale)
term - The term to be pluralizedlocale - Locale
public List<MethodMatcher> getMethodTaggers()
public List<TypeMatcher> getTypeTaggers()
public void registerMatcher(String addingClass,
Matcher<? extends org.springframework.roo.model.CustomDataAccessor> matcher)
CustomDataKeyDecorator
registerMatcher in interface CustomDataKeyDecoratoraddingClass - the name of the class registering the matcher
(required)matcher - the matcher to register (required)
public void registerMatchers(Class<?> addingClass,
Matcher<? extends org.springframework.roo.model.CustomDataAccessor>... matchers)
CustomDataKeyDecorator
registerMatchers in interface CustomDataKeyDecoratoraddingClass - the class registering the matchers (can be null not to
register any matchers)matchers - the matchers to register (can be none)public void unregisterMatchers(Class<?> addingClass)
CustomDataKeyDecorator
unregisterMatchers in interface CustomDataKeyDecoratoraddingClass - the class whose matchers are to be unregistered
(required)public void unregisterMatchers(String addingClass)
CustomDataKeyDecorator
unregisterMatchers in interface CustomDataKeyDecoratoraddingClass - the fully-qualified name of the class whose matchers
are to be unregistered (required)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||