Esempio n. 1
0
 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);
 }
Esempio n. 3
0
  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);
  }
Esempio n. 4
0
 @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);
 }
Esempio n. 6
0
 public static String forManagedBean(AnnotatedTypeIdentifier identifier) {
   return getPrefix(ManagedBean.class).append(identifier.asString()).toString();
 }