org.apache.bval
Class DynamicMetaBean

java.lang.Object
  extended by org.apache.bval.model.FeaturesCapable
      extended by org.apache.bval.model.MetaBean
          extended by org.apache.bval.DynamicMetaBean
All Implemented Interfaces:
Serializable, Cloneable, Features.Bean

public final class DynamicMetaBean
extends MetaBean

Description: Dynamic MetaBean subclass.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.bval.model.Features.Bean
DOMAIN, MAIN_KEY, UNIQUE_KEY
 
Constructor Summary
DynamicMetaBean(MetaBeanFinder finder)
          Create a new DynamicMetaBean instance.
 
Method Summary
 MetaBean resolveMetaBean(Object bean)
           If this MetaBean is compatible with bean, return this, else null.
 
Methods inherited from class org.apache.bval.model.MetaBean
copyInto, getBeanClass, getId, getName, getProperties, getProperty, hasProperties, hasRelationships, putProperty, setBeanClass, setId, setName, setProperties, toString
 
Methods inherited from class org.apache.bval.model.FeaturesCapable
addValidation, copy, createFeaturesMap, getFeature, getFeature, getFeatures, getValidations, hasValidation, optimizeRead, putFeature, setValidations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicMetaBean

public DynamicMetaBean(MetaBeanFinder finder)
Create a new DynamicMetaBean instance.

Parameters:
finder -
Method Detail

resolveMetaBean

public MetaBean resolveMetaBean(Object bean)

If this MetaBean is compatible with bean, return this, else null.

Compatibility is satisfied in one of the following ways:

different strategies with hints to find MetaBean of associated object can be implemented here.

Overrides:
resolveMetaBean in class MetaBean
Returns:
this or null


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