com.sun.portal.providers.context
Class PropertiesFilterFactory

java.lang.Object
  extended bycom.sun.portal.providers.context.PropertiesFilterFactory

public class PropertiesFilterFactory
extends java.lang.Object


Field Summary
static java.lang.String CLIENT_PROPERTIESFILTER_CLASSNAME
           
static java.lang.String LOCALE_PROPERTIESFILTER_CLASSNAME
           
 
Constructor Summary
PropertiesFilterFactory()
           
 
Method Summary
static PropertiesFilter get(java.lang.String className, java.lang.String value)
          Get an instance of optional PropertiesFilter.
static PropertiesFilter get(java.lang.String className, java.lang.String value, boolean required)
          Get an instance of PropertiesFilter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALE_PROPERTIESFILTER_CLASSNAME

public static final java.lang.String LOCALE_PROPERTIESFILTER_CLASSNAME
See Also:
Constant Field Values

CLIENT_PROPERTIESFILTER_CLASSNAME

public static final java.lang.String CLIENT_PROPERTIESFILTER_CLASSNAME
See Also:
Constant Field Values
Constructor Detail

PropertiesFilterFactory

public PropertiesFilterFactory()
Method Detail

get

public static PropertiesFilter get(java.lang.String className,
                                   java.lang.String value)
                            throws PropertiesFilterException
Get an instance of optional PropertiesFilter. The filter class is dynamically loaded and initialized with the value specified. Note that this creates an optional (non-required) filter.

Parameters:
className - The class name of the PropertiesFilter object to be dynamically loaded and instantiated.
value - The value that gets associated with the filter.
Returns:
an optional PropertiesFilter object that has been initialized with the value specified.
Throws:
PropertiesFilterException - if there was an error in instantiating the PropertiesFilter.
See Also:
PropertiesFilter

get

public static PropertiesFilter get(java.lang.String className,
                                   java.lang.String value,
                                   boolean required)
                            throws PropertiesFilterException
Get an instance of PropertiesFilter. The filter class is dynamically loaded and initialized with the value and the required flag specified.

Parameters:
className - The class name of the PropertiesFilter object to instantiate.
value - The value that gets associated with the filter.
required - Flag indicating whether this filter criteria is required or optional.
Returns:
a PropertiesFilter object that has been initialized with the value.
Throws:
PropertiesFilterException - if there was an error in instantiating the PropertiesFilter.
See Also:
PropertiesFilter