Package org.jboss.annotation.spring

Examples of org.jboss.annotation.spring.Spring


      log.debug("Invoking Spring injection: " + target.getClass().getName());

      Method[] methods = getAllMethods(target);
      for (Method m : methods)
      {
         Spring spring = m.getAnnotation(Spring.class);
         if (spring != null)
         {
            if (isSetterMethod(m))
            {
               injectToMethod(target, m, spring);
            }
            else
            {
               log.warn("Spring annotation only allowed on setter methods.");
            }
         }
      }

      Field[] fields = getAllFields(target);
      for (Field f : fields)
      {
         Spring spring = f.getAnnotation(Spring.class);
         if (spring != null)
         {
            injectToField(target, f, spring);
         }
      }
View Full Code Here

TOP

Related Classes of org.jboss.annotation.spring.Spring

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.