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 anAnnotatedType
The identifier is composed of four parts:- The identifier of the
BeanDeploymentArchive
which the type resides in. This allows differentBeanDeploymentArchive
s to bundle classes with the same name. - The declaring class name.
- An optional suffix. The suffix is used for two purposes.
- If a
BackedAnnotatedType
is created for a parameterized type (aNew
injection point), suffix is set to an identifier of that type - For an
UnbackedAnnotatedType
suffix 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
AnnotatedType
which has been modified duringProcessAnnotatedType
event notification.
- Author:
- Jozef Hartinger
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
NULL_BDA_ID
static String
SYNTHETIC_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 String
asString()
String representation of this identifier.boolean
equals(Object obj)
static AnnotatedTypeIdentifier
forBackedAnnotatedType(String contextId, Class<?> javaClass, Type type, String bdaId)
static AnnotatedTypeIdentifier
forBackedAnnotatedType(String contextId, Class<?> javaClass, Type type, String bdaId, String suffix)
static AnnotatedTypeIdentifier
forModifiedAnnotatedType(AnnotatedTypeIdentifier originalIdentifier)
String
getBdaId()
String
getClassName()
String
getContextId()
String
getSuffix()
int
hashCode()
boolean
isModified()
static AnnotatedTypeIdentifier
of(String contextId, String bdaId, String className, String suffix, boolean modified)
String
toString()
-
-
-
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:Identifier
String 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:
asString
in interfaceIdentifier
- Returns:
-
-