org.jboss.kernel.plugins.dependency
Interface BeanValidatorBridge

All Known Implementing Classes:
KernelBeanValidatorBridge

public interface BeanValidatorBridge

The bridge between jsr303 and our pojo handling.

Author:
Ales Justin

Method Summary
 void validateConstructorValues(KernelControllerContext context, org.jboss.joinpoint.spi.Joinpoint joinpoint)
          Validate constructor values.
 void validateInstance(KernelControllerContext context, Object target)
          Validate new instance.
 void validateMethodValues(KernelControllerContext context, Object target, org.jboss.reflect.spi.MethodInfo methodInfo, Object[] parameters)
          Validate method values.
 void validatePropertyValue(KernelControllerContext context, Object target, org.jboss.beans.info.spi.PropertyInfo propertyInfo, Object value)
          Validate property value.
 

Method Detail

validateConstructorValues

void validateConstructorValues(KernelControllerContext context,
                               org.jboss.joinpoint.spi.Joinpoint joinpoint)
                               throws Throwable
Validate constructor values.

Parameters:
context - the owner context
joinpoint - the constructor joinpoint
Throws:
Throwable - for any error

validateInstance

void validateInstance(KernelControllerContext context,
                      Object target)
                      throws Throwable
Validate new instance.

Parameters:
context - the owner context
target - the target
Throws:
Throwable - for any error

validatePropertyValue

void validatePropertyValue(KernelControllerContext context,
                           Object target,
                           org.jboss.beans.info.spi.PropertyInfo propertyInfo,
                           Object value)
                           throws Throwable
Validate property value.

Parameters:
context - the owner context
target - the target
propertyInfo - the property
value - the new value
Throws:
Throwable - for any error

validateMethodValues

void validateMethodValues(KernelControllerContext context,
                          Object target,
                          org.jboss.reflect.spi.MethodInfo methodInfo,
                          Object[] parameters)
                          throws Throwable
Validate method values.

Parameters:
context - the owner context
target - the target
methodInfo - the method
parameters - the parameters
Throws:
Throwable - for any error


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.