org.apache.pluto.internal
Class PreferencesValidatorRegistry

java.lang.Object
  extended by org.apache.pluto.internal.PreferencesValidatorRegistry

public class PreferencesValidatorRegistry
extends java.lang.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

Method Summary
 PreferencesValidator getPreferencesValidator(PortletDD portletDD)
          Returns the preferences validator instance for the given portlet definition.
static PreferencesValidatorRegistry getRegistry()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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-2009 Apache Software Foundation. All Rights Reserved.