public class AnnoBeanMapping
extends java.lang.Object
Encapsulates the delcaration of a one-to-one mapping of some set of
175 annotation types to their corresponding annotation beans. The mapping
is declared as a pair of strings, e.g.
typePattern = com.foo.MyAnnotation
beanPattern = com.foo.annobeans.MyAnnotationBean
This implementation also supports a simple wildcard substituion using '*',
e.g.
typePattern = com.foo.*Annotation
beanPattern = com.foo.annobeans.*AnnotationBean
The rule for matching is that a type matches if the type name startsWith
the part of the pattern before the *, and endsWith everything after the
*. Everything inbetween is substituted for the '*' in the beanPattern.
It is an error for only one fo the type and beanPatterns to contain
a *, or for either to contain more than one *.
- Author:
- Patrick Calahan <email: pcal-at-bea-dot-com>