public static String forProducerMethod(AnnotatedTypeIdentifier identifier, int memberIndex) { return getPrefix(ProducerMethod.class) .append(identifier.asString()) .append(BEAN_ID_SEPARATOR) .append(memberIndex) .toString(); }
public static <X> UnbackedAnnotatedType<X> additionalAnnotatedType( String contextId, AnnotatedType<X> source, String bdaId, String suffix, SharedObjectCache cache) { return new UnbackedAnnotatedType<X>( source, AnnotatedTypeIdentifier.of( contextId, bdaId, source.getJavaClass().getName(), suffix, false), cache); }
private BackedAnnotatedType( Class<X> rawType, Type baseType, SharedObjectCache sharedObjectCache, ReflectionCache reflectionCache, String contextId, String bdaId) { super(baseType, sharedObjectCache); this.javaClass = rawType; this.sharedObjectCache = sharedObjectCache; this.reflectionCache = reflectionCache; this.constructors = new BackedAnnotatedConstructors(); this.fields = new BackedAnnotatedFields(); this.methods = new BackedAnnotatedMethods(); this.identifier = AnnotatedTypeIdentifier.forBackedAnnotatedType(contextId, rawType, baseType, bdaId); }
@Override public int hashCode() { return identifier.hashCode(); }
public static <X> UnbackedAnnotatedType<X> modifiedAnnotatedType( SlimAnnotatedType<X> originalType, AnnotatedType<X> source, SharedObjectCache cache) { AnnotatedTypeIdentifier identifier = AnnotatedTypeIdentifier.forModifiedAnnotatedType(originalType.getIdentifier()); return new UnbackedAnnotatedType<X>(source, identifier, cache); }
public static String forManagedBean(AnnotatedTypeIdentifier identifier) { return getPrefix(ManagedBean.class).append(identifier.asString()).toString(); }