org.apache.pluto.internal
Class PreferencesValidatorRegistry
java.lang.Object
org.apache.pluto.internal.PreferencesValidatorRegistry
public class PreferencesValidatorRegistry
- extends Object
The portlet preferences validator registry. This class caches the portlet
preferences validator instances for portlet definitions, and ensure that
only one validator instance is created per portlet definition.
- Since:
- 2006-02-10
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getRegistry
public static PreferencesValidatorRegistry getRegistry()
getPreferencesValidator
public PreferencesValidator getPreferencesValidator(PortletDD portletDD)
throws ValidatorException
- Returns the preferences validator instance for the given portlet
definition. If no preferences validator class is defined for the portlet
definition, null is returned. This method caches the validator instances
in the cache to ensure that only one validator instance is created per
portlet definition.
- Parameters:
portletDD
- the portlet definition.
- Returns:
- the preferences validator if defined for the portlet definition.
- Throws:
ValidatorException
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.