@Test public void testQualifiers() { assertEquals(new HashSet<>(Arrays.asList(new AnnotationLiteral<Default>() { }, new AnnotationLiteral<Any>() { })), testee.getQualifiers()); }
@SuppressWarnings("serial") @Override public Set<Annotation> getQualifiers() { final Set<Annotation> qualifiers = new HashSet<>(); qualifiers.add(new AnnotationLiteral<Default>() { }); qualifiers.add(new AnnotationLiteral<Any>() { }); return qualifiers; }
BeanWrapper implements Bean<T>, PassivationCapable { @SuppressWarnings("serial") @Override public Set<Annotation> getQualifiers() { final Set<Annotation> qualifiers = new HashSet<>(); qualifiers.add(new AnnotationLiteral<Default>() { }); qualifiers.add(new AnnotationLiteral<Any>() { }); return qualifiers; } }
BeanWrapper implements Bean<T>, PassivationCapable { @SuppressWarnings("serial") @Override public Set<Annotation> getQualifiers() { final Set<Annotation> qualifiers = new HashSet<>(); qualifiers.add(new AnnotationLiteral<Default>() { }); qualifiers.add(new AnnotationLiteral<Any>() { }); return qualifiers; } BeanWrapper(final Class<T> clazz, final Supplier<T> supplier);  BeanWrapper(final String name, final Class<T> clazz, final Supplier<T> supplier); }
BeanWrapper implements Bean<T>, PassivationCapable { @SuppressWarnings("serial") @Override public Set<Annotation> getQualifiers() { final Set<Annotation> qualifiers = new HashSet<>(); qualifiers.add(new AnnotationLiteral<Default>() { }); qualifiers.add(new AnnotationLiteral<Any>() { }); return qualifiers; } BeanWrapper(final Class<T> clazz, final Supplier<T> supplier);  BeanWrapper(final String name, final Class<T> clazz, final Supplier<T> supplier); @Override T create(final CreationalContext<T> context); @Override // Mark: Is this correct? Should I be doing something additional? void destroy(T instance, final CreationalContext<T> context); @Override String getName(); @SuppressWarnings("serial") @Override Set<Annotation> getQualifiers(); @Override Class<? extends Annotation> getScope(); @Override Set<Class<? extends Annotation>> getStereotypes(); @Override Set<Type> getTypes(); @Override Class<?> getBeanClass(); @Override Set<InjectionPoint> getInjectionPoints(); @Override boolean isAlternative(); @Override boolean isNullable(); @Override // Mark: Is this sufficiently unique? Will this wrapper actually ever // get serialized? Is this supposed to be the ID of the underlying // bean instance or just this bean definition? String getId(); }
BeanWrapper implements Bean<T>, PassivationCapable { @SuppressWarnings("serial") @Override public Set<Annotation> getQualifiers() { final Set<Annotation> qualifiers = new HashSet<>(); qualifiers.add(new AnnotationLiteral<Default>() { }); qualifiers.add(new AnnotationLiteral<Any>() { }); return qualifiers; } BeanWrapper(final Class<T> clazz, final Supplier<T> supplier);  BeanWrapper(final String name, final Class<T> clazz, final Supplier<T> supplier); @Override T create(final CreationalContext<T> context); @Override // Mark: Is this correct? Should I be doing something additional? void destroy(T instance, final CreationalContext<T> context); @Override String getName(); @SuppressWarnings("serial") @Override Set<Annotation> getQualifiers(); @Override Class<? extends Annotation> getScope(); @Override Set<Class<? extends Annotation>> getStereotypes(); @Override Set<Type> getTypes(); @Override Class<?> getBeanClass(); @Override Set<InjectionPoint> getInjectionPoints(); @Override boolean isAlternative(); @Override boolean isNullable(); @Override // Mark: Is this sufficiently unique? Will this wrapper actually ever // get serialized? Is this supposed to be the ID of the underlying // bean instance or just this bean definition? String getId();  }