Package org.jboss.kernel.plugins.annotations

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


      super(name);
   }

   protected BeanAnnotationAdapter getBeanAnnotationAdapterClass()
   {
      BasicBeanAnnotationAdapter adapter = BasicBeanAnnotationAdapter.INSTANCE;
      adapter.addAnnotationPlugin(new SecurityDomainAnnotationPlugin());
      return adapter;
   }
View Full Code Here


   }

   @SuppressWarnings("unchecked")
   protected BeanAnnotationAdapter getBeanAnnotationAdapterClass()
   {
      BasicBeanAnnotationAdapter basic = BasicBeanAnnotationAdapter.INSTANCE;

      // injection
      AnnotationPlugin redInjection = AnnotationsAnnotationPluginFactory.createPropertyInjectionPlugin(Red.class);
      basic.addAnnotationPlugin(redInjection);
      redInjection = AnnotationsAnnotationPluginFactory.createFieldInjectionPlugin(Red.class);
      basic.addAnnotationPlugin(redInjection);

      AnnotationPlugin greenInjection = AnnotationsAnnotationPluginFactory.createPropertyInjectionPlugin(Green.class);
      basic.addAnnotationPlugin(greenInjection);
      greenInjection = AnnotationsAnnotationPluginFactory.createFieldInjectionPlugin(Green.class);
      basic.addAnnotationPlugin(greenInjection);

      AnnotationPlugin blueInjection = AnnotationsAnnotationPluginFactory.createPropertyInjectionPlugin(Blue.class);
      basic.addAnnotationPlugin(blueInjection);
      blueInjection = AnnotationsAnnotationPluginFactory.createFieldInjectionPlugin(Blue.class);
      basic.addAnnotationPlugin(blueInjection);

      // class
      AnnotationPlugin redSupply = AnnotationsAnnotationPluginFactory.createClassPlugin(Red.class);
      basic.addAnnotationPlugin(redSupply);
      AnnotationPlugin greenSupply = AnnotationsAnnotationPluginFactory.createClassPlugin(Green.class);
      basic.addAnnotationPlugin(greenSupply);
      AnnotationPlugin blueSupply = AnnotationsAnnotationPluginFactory.createClassPlugin(Blue.class);
      basic.addAnnotationPlugin(blueSupply);

      return basic;
   }
View Full Code Here

TOP

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

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.