javax.beans.binding.ext
Class PropertyDelegateFactory

java.lang.Object
  extended by javax.beans.binding.ext.PropertyDelegateFactory

public final class PropertyDelegateFactory
extends java.lang.Object

PropertyDelegateFactory is a factory used to look up property delegates. See PropertyDelegateProvider for details.

See Also:
PropertyDelegateProvider

Method Summary
static java.lang.Object getPropertyDelegate(java.lang.Object source, java.lang.String property)
          Returns the property delegate for the specified object and property.
static java.util.List<java.lang.Class<?>> getPropertyDelegateClass(java.lang.Class<?> type)
          Returns a List of the classes of the property delegates for the specified class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPropertyDelegate

public static java.lang.Object getPropertyDelegate(java.lang.Object source,
                                                   java.lang.String property)
Returns the property delegate for the specified object and property.

Parameters:
source - the object to return the property delegate for
property - the property
Returns:
the property delegate for the specified object and property pair, or null if a property delegate does not exist for the specified pair
Throws:
java.lang.IllegalArgumentException - if either argument is null

getPropertyDelegateClass

public static java.util.List<java.lang.Class<?>> getPropertyDelegateClass(java.lang.Class<?> type)
Returns a List of the classes of the property delegates for the specified class. If no delegates exist, an empty List is returned.

Parameters:
type - the class to return the property delegate class of
Returns:
a list of types of property delegates for the specified class
Throws:
java.lang.IllegalArgumentException - if type is null