org.jboss.weld.extensions.properties
Class Properties

java.lang.Object
  extended by org.jboss.weld.extensions.properties.Properties

public class Properties
extends Object

Utility class for working with JavaBean style properties

Author:
Pete Muir, Shane Bryzak
See Also:
Property

Method Summary
static
<V> FieldProperty<V>
createProperty(Field field)
          Create a JavaBean style property from the field
static
<V> Property<V>
createProperty(Member member)
          Create a JavaBean style property from the specified member
static
<V> MethodProperty<V>
createProperty(Method method)
          Create a JavaBean style property from the specified method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createProperty

public static <V> FieldProperty<V> createProperty(Field field)
Create a JavaBean style property from the field

Type Parameters:
V -
Parameters:
field -
Returns:

createProperty

public static <V> MethodProperty<V> createProperty(Method method)
Create a JavaBean style property from the specified method

Type Parameters:
V -
Parameters:
method -
Returns:
Throws:
IllegalArgumentException - if the method does not match JavaBean conventions

createProperty

public static <V> Property<V> createProperty(Member member)
Create a JavaBean style property from the specified member

Type Parameters:
V -
Parameters:
member -
Returns:
Throws:
IllegalArgumentException - if the method does not match JavaBean conventions


Copyright © 2008-2010 Seam Framework. All Rights Reserved.