org.apache.bval.jsr303.extensions
Class MethodValidatorMetaBeanFactory

java.lang.Object
  extended by org.apache.bval.jsr303.Jsr303MetaBeanFactory
      extended by org.apache.bval.jsr303.extensions.MethodValidatorMetaBeanFactory
All Implemented Interfaces:
MetaBeanFactory

public class MethodValidatorMetaBeanFactory
extends Jsr303MetaBeanFactory

Description: extension to validate parameters/return values of methods/constructors.


Field Summary
 
Fields inherited from class org.apache.bval.jsr303.Jsr303MetaBeanFactory
annotationProcessor, factoryContext, log
 
Constructor Summary
MethodValidatorMetaBeanFactory(ApacheFactoryContext factoryContext)
          Create a new MethodValidatorMetaBeanFactory instance.
 
Method Summary
 void buildMethodDescriptor(MethodBeanDescriptorImpl descriptor)
          Finish building the specified MethodBeanDescriptorImpl.
protected  boolean hasValidationConstraintsDefined(Method method)
          Learn whether a given Method has validation constraints defined via JSR303 annotations.
 
Methods inherited from class org.apache.bval.jsr303.Jsr303MetaBeanFactory
addMetaProperty, buildMetaBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodValidatorMetaBeanFactory

public MethodValidatorMetaBeanFactory(ApacheFactoryContext factoryContext)
Create a new MethodValidatorMetaBeanFactory instance.

Parameters:
factoryContext -
Method Detail

hasValidationConstraintsDefined

protected boolean hasValidationConstraintsDefined(Method method)
Learn whether a given Method has validation constraints defined via JSR303 annotations.

Overrides:
hasValidationConstraintsDefined in class Jsr303MetaBeanFactory
Returns:
true if constraints detected

buildMethodDescriptor

public void buildMethodDescriptor(MethodBeanDescriptorImpl descriptor)
Finish building the specified MethodBeanDescriptorImpl.

Parameters:
descriptor -


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