public class AnnotatedTypeIdentifier extends Object implements Identifier
AnnotatedType
The identifier is composed of four parts:
BeanDeploymentArchive
which the type resides in. This allows different BeanDeploymentArchive
s to bundle classes with the same name.BackedAnnotatedType
is created for a parameterized type (a New
injection point), suffix is set to an identifier of that typeUnbackedAnnotatedType
suffix holds the type identifier provided by the extension or calculated based on the type's qualities (see AnnotatedTypes.createTypeId(AnnotatedType)
)AnnotatedType
which has been modified during ProcessAnnotatedType
event notification.Modifier and Type | Field and Description |
---|---|
static String |
NULL_BDA_ID |
static String |
SYNTHETIC_ANNOTATION_SUFFIX |
ID_SEPARATOR
Modifier and Type | Method and 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 |
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() |
public static final String NULL_BDA_ID
public static final String SYNTHETIC_ANNOTATION_SUFFIX
public static AnnotatedTypeIdentifier forBackedAnnotatedType(String contextId, Class<?> javaClass, Type type, String bdaId)
public static AnnotatedTypeIdentifier forModifiedAnnotatedType(AnnotatedTypeIdentifier originalIdentifier)
public static AnnotatedTypeIdentifier of(String contextId, String bdaId, String className, String suffix, boolean modified)
public String getContextId()
public String getBdaId()
public String getClassName()
public String getSuffix()
public boolean isModified()
public String asString()
Identifier
PassivationCapable.getId()
. Unlike #toString()
, this method returns a non-verbose canonical
string identifier.asString
in interface Identifier
Copyright © 2016. All rights reserved.