Package org.jboss.kernel.plugins.annotations

Examples of org.jboss.kernel.plugins.annotations.AbstractBeanAnnotationAdapter


      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;
   }
View Full Code Here


   protected void setUp() throws Exception
   {
      super.setUp();

      AbstractBeanAnnotationAdapter adapter = BasicBeanAnnotationAdapter.INSTANCE;
      adapter.addAnnotationPlugin(SearchPropertyAnnotationPlugin.INSTANCE);
   }
View Full Code Here

      return BasicBeanAnnotationAdapter.INSTANCE;
   }

   protected void tearDown() throws Exception
   {
      AbstractBeanAnnotationAdapter adapter = BasicBeanAnnotationAdapter.INSTANCE;
      adapter.removeAnnotationPlugin(SearchPropertyAnnotationPlugin.INSTANCE);

      super.tearDown();
   }
View Full Code Here

TOP

Related Classes of org.jboss.kernel.plugins.annotations.AbstractBeanAnnotationAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.