org.apache.bval
Class IntrospectorMetaBeanFactory

java.lang.Object
  extended by org.apache.bval.IntrospectorMetaBeanFactory
All Implemented Interfaces:
MetaBeanFactory

public class IntrospectorMetaBeanFactory
extends Object
implements MetaBeanFactory

Description: use information from java.beans.Introspector in MetaBeans. The PropertyDescriptor can contain info about HIDDEN, PREFERRED, READONLY and other features
NOTE: THIS IS AN OPTIONAL CLASS, TO ENABLE IT, SET Factory Property apache.bval.enable-introspector="true"


Constructor Summary
IntrospectorMetaBeanFactory()
           
 
Method Summary
 void buildMetaBean(MetaBean meta)
          Initialize the specified MetaBean.
protected  MetaProperty buildMetaProperty(PropertyDescriptor pd)
          Deprecated. 
protected  MetaProperty buildMetaProperty(PropertyDescriptor pd, MetaProperty existing)
          Create a MetaProperty from the specified PropertyDescriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntrospectorMetaBeanFactory

public IntrospectorMetaBeanFactory()
Method Detail

buildMetaBean

public void buildMetaBean(MetaBean meta)
                   throws Exception
Initialize the specified MetaBean.

Specified by:
buildMetaBean in interface MetaBeanFactory
Throws:
Exception

buildMetaProperty

@Deprecated
protected MetaProperty buildMetaProperty(PropertyDescriptor pd)
Deprecated. 

Create a MetaProperty from the specified PropertyDescriptor.

Parameters:
pd -
Returns:
MetaProperty

buildMetaProperty

protected MetaProperty buildMetaProperty(PropertyDescriptor pd,
                                         MetaProperty existing)
Create a MetaProperty from the specified PropertyDescriptor.

Parameters:
pd -
existing -
Returns:
MetaProperty


Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.