An interface allowing users of the Registration service to customize different aspects of how Consumers are handled. Methods of this interface are used by RegistrationManager to make appropriate decisions. Implementations of this interface
MUST provide a no-argument constructor for instantiation from the class name.
IMPORTANT: RegistrationPolicy instances are wrapped using a {@link org.gatein.registration.policies.RegistrationPolicyWrapper}. As a result, using
instanceof
on a RegistrationPolicy will probably result in unexpected result. To retrieve the actual class of the RegistrationPolicy instance in use, use {@link #getRealClass()} (or {@link #getClassName()} to retrieve the class name). If, for somereason, the actual RegistrationPolicy instance is needed, use {@link org.gatein.registration.policies.RegistrationPolicyWrapper#unwrap(RegistrationPolicy)}, though it is not recommended to manipulate actual RegistrationPolicy instances directly.
@author
Chris Laprun
@version $Revision: 11406 $
@since 2.6