Package org.jboss.weld.annotated.slim
Class AnnotatedTypeIdentifier
- java.lang.Object
-
- org.jboss.weld.annotated.slim.AnnotatedTypeIdentifier
-
- All Implemented Interfaces:
Serializable,Identifier
public class AnnotatedTypeIdentifier extends Object implements Identifier
An identifier for a anAnnotatedTypeThe identifier is composed of four parts:- The identifier of the
BeanDeploymentArchivewhich the type resides in. This allows differentBeanDeploymentArchives to bundle classes with the same name. - The declaring class name.
- An optional suffix. The suffix is used for two purposes.
- If a
BackedAnnotatedTypeis created for a parameterized type (aNewinjection point), suffix is set to an identifier of that type - For an
UnbackedAnnotatedTypesuffix holds the type identifier provided by the extension or calculated based on the type's qualities (seeAnnotatedTypes.createTypeId(AnnotatedType)) - Modified flag which indicates whether this is an identifier for an
AnnotatedTypewhich has been modified duringProcessAnnotatedTypeevent notification.
- Author:
- Jozef Hartinger
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringNULL_BDA_IDstatic StringSYNTHETIC_ANNOTATION_SUFFIX-
Fields inherited from interface org.jboss.weld.annotated.Identifier
ID_SEPARATOR
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasString()String representation of this identifier.booleanequals(Object obj)static AnnotatedTypeIdentifierforBackedAnnotatedType(String contextId, Class<?> javaClass, Type type, String bdaId)static AnnotatedTypeIdentifierforBackedAnnotatedType(String contextId, Class<?> javaClass, Type type, String bdaId, String suffix)static AnnotatedTypeIdentifierforModifiedAnnotatedType(AnnotatedTypeIdentifier originalIdentifier)StringgetBdaId()StringgetClassName()StringgetContextId()StringgetSuffix()inthashCode()booleanisModified()static AnnotatedTypeIdentifierof(String contextId, String bdaId, String className, String suffix, boolean modified)StringtoString()
-
-
-
Field Detail
-
NULL_BDA_ID
public static final String NULL_BDA_ID
-
SYNTHETIC_ANNOTATION_SUFFIX
public static final String SYNTHETIC_ANNOTATION_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
forBackedAnnotatedType
public static AnnotatedTypeIdentifier forBackedAnnotatedType(String contextId, Class<?> javaClass, Type type, String bdaId)
-
forBackedAnnotatedType
public static AnnotatedTypeIdentifier forBackedAnnotatedType(String contextId, Class<?> javaClass, Type type, String bdaId, String suffix)
-
forModifiedAnnotatedType
public static AnnotatedTypeIdentifier forModifiedAnnotatedType(AnnotatedTypeIdentifier originalIdentifier)
-
of
public static AnnotatedTypeIdentifier of(String contextId, String bdaId, String className, String suffix, boolean modified)
-
getContextId
public String getContextId()
-
getBdaId
public String getBdaId()
-
getClassName
public String getClassName()
-
getSuffix
public String getSuffix()
-
isModified
public boolean isModified()
-
asString
public String asString()
Description copied from interface:IdentifierString representation of this identifier. This is required as some parts of the CDI API use String identifiers, for examplePassivationCapable.getId(). Unlike#toString(), this method returns a non-verbose canonical string identifier.- Specified by:
asStringin interfaceIdentifier- Returns:
-
-