Package org.cruxframework.crux.core.ioc

Examples of org.cruxframework.crux.core.ioc.IoCException


      srcWriter.println("return result;");
      srcWriter.println("}");
    }
    catch (NotFoundException e)
    {
      throw new IoCException("IoC Error Class ["+className+"] not found.", e);
    }
   
    }
View Full Code Here


                srcWriter.println(parentVariable+"."+fieldName+" = "+ injectionExpression+";");
              }
            }
            else
            {
              throw new IoCException("IoC Error Field ["+field.getName()+"] from class ["+type.getQualifiedSourceName()+"] is not a writeable property.");
            }
          }
        }
          }
        }
View Full Code Here

          for (JParameter parameter : parameters)
                  {
            JType parameterType = parameter.getType();
            if ((parameterType.isPrimitive()!= null))
            {
              throw new IoCException("IoC Error Method ["+methodName+"] from class ["+type.getQualifiedSourceName()+"] declares an invalid parameter. Primitive types are not allowed here");
            }
            String variableName = "parameter_"+methodName+"_"+parameter.getName();
            params.add(variableName);
            String injectionExpression = getParameterInjectionExpression(parameter, iocContainerVariable, configurations);
            srcWriter.println(parameterType.getQualifiedSourceName()+" "+variableName+" = "+ injectionExpression+";");
View Full Code Here

            return "GWT.create("+fieldTypeName+".class)";
          }
        }
        else
        {
          throw new IoCException("Error injecting field ["+field.getName()+"] from type ["+field.getEnclosingType().getQualifiedSourceName()+"]. Primitive fields can not be handled by ioc container.");
        }
      }
      else
      {
        throw new IoCException("Error injecting field ["+field.getName()+"] from type ["+field.getEnclosingType().getQualifiedSourceName()+"]. Static fields can not be handled by ioc container.");
      }
    }
      return null;
    }
View Full Code Here

        return "GWT.create("+fieldTypeName+".class)";
      }
    }
    else
    {
      throw new IoCException("Error injecting parameter ["+parameter.getName()+"] from method ["+parameter.getEnclosingMethod().getReadableDeclaration()+"]. Primitive fields can not be handled by ioc container.");
    }
    }
View Full Code Here

TOP

Related Classes of org.cruxframework.crux.core.ioc.IoCException

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.