Package org.jboss.weld.annotated.slim
Class AnnotatedTypeIdentifier
java.lang.Object
org.jboss.weld.annotated.slim.AnnotatedTypeIdentifier
- All Implemented Interfaces:
Serializable,Identifier
An identifier for a an
AnnotatedType The 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, 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:
-
Field Summary
FieldsFields inherited from interface org.jboss.weld.annotated.Identifier
ID_SEPARATOR -
Method Summary
Modifier and TypeMethodDescriptionasString()String representation of this identifier.booleanstatic 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) getBdaId()inthashCode()booleanstatic AnnotatedTypeIdentifiertoString()
-
Field Details
-
NULL_BDA_ID
-
SYNTHETIC_ANNOTATION_SUFFIX
- See Also:
-
-
Method Details
-
forBackedAnnotatedType
public static AnnotatedTypeIdentifier forBackedAnnotatedType(String contextId, Class<?> javaClass, Type type, String bdaId) -
forBackedAnnotatedType
-
forModifiedAnnotatedType
public static AnnotatedTypeIdentifier forModifiedAnnotatedType(AnnotatedTypeIdentifier originalIdentifier) -
of
public static AnnotatedTypeIdentifier of(String contextId, String bdaId, String className, String suffix, boolean modified) -
getContextId
-
getBdaId
-
getClassName
-
getSuffix
-
isModified
public boolean isModified() -
hashCode
public int hashCode() -
equals
-
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:
-
toString
-