return suite(WBInjectionTestCase.class);
}
protected BeanAnnotationAdapter getBeanAnnotationAdapterClass()
{
AbstractBeanAnnotationAdapter adapter = new AbstractBeanAnnotationAdapter();
// wb injection
adapter.addAnnotationPlugin(WBInjectFieldAnnotationPlugin.INSTANCE);
adapter.addAnnotationPlugin(WBInjectAnnotationPlugin.INSTANCE);
// parameter adapter
Annotation2ValueMetaDataAdapter<? extends Annotation> paramAdapter = WBInjectAnnotationPlugin.INSTANCE;
Set<Annotation2ValueMetaDataAdapter<? extends Annotation>> adapters = new HashSet<Annotation2ValueMetaDataAdapter<? extends Annotation>>();
adapters.add(paramAdapter);
// parameter injections
adapter.addAnnotationPlugin(new ConstructorParameterAnnotationPlugin(adapters));
adapter.addAnnotationPlugin(new StartLifecycleAnnotationPlugin(adapters));
return adapter;
}