org.springframework.roo.classpath.customdata.taggers
Interface CustomDataKeyDecorator

All Superinterfaces:
MemberDetailsDecorator
All Known Implementing Classes:
CustomDataKeyDecoratorImpl

public interface CustomDataKeyDecorator
extends MemberDetailsDecorator

Provides a universal registry for Matcher objects. Initially no checks are being performed upon adding new Matcher instances, it is envisioned that this will change and an alert would be provided if a Matcher object was in conflict with another. For this to happen a more fleshed out matching API needs to be implemented as so comparison of Matchers can be performed easily. In addition to registering Matchers this interface allows Matcher objects to be unregistered based on the registering class which is useful if the registering class is no longer in play.

Since:
1.1.3
Author:
James Tyrrell

Method Summary
 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 interface org.springframework.roo.classpath.scanner.MemberDetailsDecorator
decorate, decorateTypes
 

Method Detail

registerMatcher

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.

Parameters:
addingClass - the name of the class registering the matcher (required)
matcher - the matcher to register (required)

registerMatchers

void registerMatchers(Class<?> addingClass,
                      Matcher<? extends org.springframework.roo.model.CustomDataAccessor>... matchers)
Registers the given matchers on behalf of the given class

Parameters:
addingClass - the class registering the matchers (can be null not to register any matchers)
matchers - the matchers to register (can be none)
Since:
1.2.0

unregisterMatchers

void unregisterMatchers(Class<?> addingClass)
Unregisters any matchers registered by the given class

Parameters:
addingClass - the class whose matchers are to be unregistered (required)
Since:
1.2.0

unregisterMatchers

void unregisterMatchers(String addingClass)
Unregisters any matchers registered by the given class

Parameters:
addingClass - the fully-qualified name of the class whose matchers are to be unregistered (required)


Copyright © 2009–2015. All rights reserved.