JBoss MetaData Repository 2.2.0.SP1

org.jboss.annotation.factory
Interface AnnotationValidator

All Known Implementing Classes:
DefaultValueAnnotationValidator, SimpleAnnotationValidator

public interface AnnotationValidator

Validates that all annotations created for a proxy have been filled in. Depending on the underlying implementation fills in missing attributes with default values.

Version:
$Revision: 69888 $
Author:
Kabir Khan

Method Summary
 void validate(Map<String,Object> map, Class<?> annotation)
          Validates that all annotations created for a proxy have been filled in.
 

Method Detail

validate

void validate(Map<String,Object> map,
              Class<?> annotation)
Validates that all annotations created for a proxy have been filled in. Depending on the underlying implementation fills in missing attributes with default values.

Parameters:
map - The annotation attribute values
annotation - The annotation type
Throws:
AnnotationValidationException - if some attributes were not filled in and no default value exists for that attribute

JBoss MetaData Repository 2.2.0.SP1

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