|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.solder.reflection.annotated.Annotateds
public class Annotateds
Utilities for working with Annotateds.
Includes utilities to check the equality of and create unique id's for
Annotated instances.
| Method Summary | ||
|---|---|---|
static boolean |
compareAnnotatedCallable(AnnotatedCallable<?> m1,
AnnotatedCallable<?> m2)
Compare AnnotatedCallables for equality. |
|
static boolean |
compareAnnotatedField(AnnotatedField<?> f1,
AnnotatedField<?> f2)
Compares AnnotatedFields for equality. |
|
static boolean |
compareAnnotatedTypes(AnnotatedType<?> t1,
AnnotatedType<?> t2)
Compares two AnnotatedTypes for equality. |
|
static
|
createCallableId(AnnotatedCallable<X> method)
Generates a deterministic signature for an AnnotatedCallable. |
|
static
|
createConstructorId(Constructor<X> constructor,
Set<Annotation> annotations,
List<AnnotatedParameter<X>> parameters)
Creates a deterministic signature for a Constructor. |
|
static
|
createFieldId(AnnotatedField<X> field)
Generates a deterministic signature for an AnnotatedField. |
|
static
|
createFieldId(Field field,
Collection<Annotation> annotations)
Creates a deterministic signature for a Field. |
|
static
|
createMethodId(Method method,
Set<Annotation> annotations,
List<AnnotatedParameter<X>> parameters)
Creates a deterministic signature for a Method. |
|
static
|
createParameterId(AnnotatedParameter<X> annotatedParameter)
Creates a string representation of an AnnotatedParameter. |
|
static
|
createParameterId(Type type,
Set<Annotation> annotations)
Creates a string representation of a given type and set of annotations. |
|
static
|
createParameterListId(List<AnnotatedParameter<X>> parameters)
Generates a unique string representation of a list of AnnotatedParameters. |
|
static
|
createTypeId(AnnotatedType<X> annotatedType)
Generates a deterministic signature for an AnnotatedType. |
|
static
|
createTypeId(Class<X> clazz,
Collection<Annotation> annotations,
Collection<AnnotatedMethod<? super X>> methods,
Collection<AnnotatedField<? super X>> fields,
Collection<AnnotatedConstructor<X>> constructors)
Generates a unique signature for a concrete class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <X> String createTypeId(AnnotatedType<X> annotatedType)
AnnotatedType. Two
AnnotatedTypes that have the same annotations and underlying
type will generate the same signature.
This can be used to create a unique bean id for a passivation capable bean
that is added directly through the SPI.
annotatedType - The type to generate a signature for
public static <X> String createTypeId(Class<X> clazz,
Collection<Annotation> annotations,
Collection<AnnotatedMethod<? super X>> methods,
Collection<AnnotatedField<? super X>> fields,
Collection<AnnotatedConstructor<X>> constructors)
annotations, methods, fields and
constructors arguments
clazz - The java class tyoeannotations - Annotations present on the java classmethods - The AnnotatedMethods to include in the signaturefields - The AnnotatedFields to include in the signatureconstructors - The AnnotatedConstructors to include in the signature
public static <X> String createFieldId(AnnotatedField<X> field)
AnnotatedField. Two
AnnotatedFields that have the same annotations and
underlying field will generate the same signature.
public static <X> String createFieldId(Field field,
Collection<Annotation> annotations)
Field.
field - The field to generate the signature forannotations - The annotations to include in the signaturepublic static <X> String createCallableId(AnnotatedCallable<X> method)
AnnotatedCallable. Two
AnnotatedCallables that have the same annotations and
underlying callable will generate the same signature.
public static <X> String createMethodId(Method method,
Set<Annotation> annotations,
List<AnnotatedParameter<X>> parameters)
Method.
method - The method to generate the signature forannotations - The annotations to include in the signatureparameters - The AnnotatedParameters to include in the
signature
public static <X> String createConstructorId(Constructor<X> constructor,
Set<Annotation> annotations,
List<AnnotatedParameter<X>> parameters)
Constructor.
constructor - The constructor to generate the signature forannotations - The annotations to include in the signatureparameters - The AnnotatedParameters to include in the
signaturepublic static <X> String createParameterListId(List<AnnotatedParameter<X>> parameters)
AnnotatedParameters.
public static <X> String createParameterId(AnnotatedParameter<X> annotatedParameter)
AnnotatedParameter.
public static <X> String createParameterId(Type type,
Set<Annotation> annotations)
public static boolean compareAnnotatedField(AnnotatedField<?> f1,
AnnotatedField<?> f2)
Compares AnnotatedFields for equality.
Two AnnotatedFields are considered equal if they have the same
underlying field and annotations.
public static boolean compareAnnotatedCallable(AnnotatedCallable<?> m1,
AnnotatedCallable<?> m2)
Compare AnnotatedCallables for equality.
Two AnnotatedCallables are considered equal if they have the same
underlying callable and annotations.
public static boolean compareAnnotatedTypes(AnnotatedType<?> t1,
AnnotatedType<?> t2)
Compares two AnnotatedTypes for equality.
Two AnnotatedTypes are considered equal if they have the same
underlying type and annotations, and all members have the same
annotations.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||