org.jboss.seam.solder.properties
Class Properties

java.lang.Object
  extended by org.jboss.seam.solder.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
static
<V> boolean
isProperty(Method method)
          Indicates whether this method is a valid property 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
See Also:
http://www.oracle.com/technetwork/java/javase/documentation/spec-136004.html

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
See Also:
http://www.oracle.com/technetwork/java/javase/documentation/spec-136004.html

isProperty

public static <V> boolean isProperty(Method method)
Indicates whether this method is a valid property method.



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