Package org.jboss.wsf.common.injection

Examples of org.jboss.wsf.common.injection.InjectionException


      final boolean isSetterMethodName = methodName.startsWith("set");
      final boolean isUpperCasedPropertyName = correctMethodNameLength ? Character.isUpperCase(methodName.charAt(3)) : false;

      if (!correctMethodNameLength || !isSetterMethodName || !isUpperCasedPropertyName)
      {
         throw new InjectionException("Method " + getAnnotationMessage(annotation) + "doesn't follow Java Beans setter method name: " + method);
      }
   }
View Full Code Here


    */
   public static void assertOnlyOneMethod(final Collection<Method> methods, Class<? extends Annotation> annotation)
   {
      if (methods.size() > 1)
      {
         throw new InjectionException("Only one method " + getAnnotationMessage(annotation) + "can exist");
      }
   }
View Full Code Here

   {
      super.validate(fields);

      if (fields.size() > 2)
      {
         throw new InjectionException("More than one field found matching the criteria: " + injectionMD);
      }
   }
View Full Code Here

   {
      super.validate(methods);

      if (methods.size() > 2)
      {
         throw new InjectionException("More than one method found matching the criteria: " + injectionMD);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.wsf.common.injection.InjectionException

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.