@Test public void shouldRecognizeConnectionFactoryNameAnnotation() throws Exception { ConnectionFactoryNameBinding binding = new ConnectionFactoryNameBinding("foo"); MessageApiBean<DummyApi> bean = MessageApiBean.of(DummyApi.class, binding); JmsQueueConfig config = bean.factory.getConfig(); assertEquals("foo", config.getFactoryName()); }
public static <T> MessageApiBean<T> of(Class<T> api, Annotation... qualifiers) { return MessageApiBean.of(api, new HashSet<Annotation>(Arrays.asList(qualifiers))); }
MessageApiBean extends AbstractBean<T> { public static <T> MessageApiBean<T> of(Class<T> api, Annotation... qualifiers) { return MessageApiBean.of(api, new HashSet<Annotation>(Arrays.asList(qualifiers))); } }
MessageApiBean extends AbstractBean<T> { public static <T> MessageApiBean<T> of(Class<T> api, Annotation... qualifiers) { return MessageApiBean.of(api, new HashSet<Annotation>(Arrays.asList(qualifiers))); } private  MessageApiBean(Class<T> api, Set<Annotation> qualifiers); }
MessageApiBean extends AbstractBean<T> { public static <T> MessageApiBean<T> of(Class<T> api, Annotation... qualifiers) { return MessageApiBean.of(api, new HashSet<Annotation>(Arrays.asList(qualifiers))); } private  MessageApiBean(Class<T> api, Set<Annotation> qualifiers); static MessageApiBean<T> of(Class<T> api, Annotation... qualifiers); static MessageApiBean<T> of(Class<T> api, Set<Annotation> qualifiers); Mapping buildMapping(); @Override String getName(); @Override Set<Annotation> getQualifiers(); @Override T create(CreationalContext<T> ctx); }
MessageApiBean extends AbstractBean<T> { public static <T> MessageApiBean<T> of(Class<T> api, Annotation... qualifiers) { return MessageApiBean.of(api, new HashSet<Annotation>(Arrays.asList(qualifiers))); } private  MessageApiBean(Class<T> api, Set<Annotation> qualifiers); static MessageApiBean<T> of(Class<T> api, Annotation... qualifiers); static MessageApiBean<T> of(Class<T> api, Set<Annotation> qualifiers); Mapping buildMapping(); @Override String getName(); @Override Set<Annotation> getQualifiers(); @Override T create(CreationalContext<T> ctx);  }