fullRuntime/src/sc/type/RTypeUtil.java
public static Object newComponent(Class theClass, Object... params) {
      String methodName = "new" + CTypeUtil.capitalizePropertyName(CTypeUtil.getClassName(theClass.getName().replace('$', '.')));
      Method method = getMethodFromArgs(theClass, methodName, params);
      // If there's no newX method, we'll try the constructor.  Maybe it's a component which does not need graph construction
      // but does need init, start, etc.
      if (method == null) {
         return DynUtil.createInstance(theClass, null, params);
      }
      if (method == null)
         throw new IllegalArgumentException("No method named: " + methodName + " with args: " + params + " in: " +  getMethods(theClass, methodName));
      if (!PTypeUtil.hasModifier(method, "static"))
         throw new IllegalArgumentException("Non-static method: " + methodName + " called from a static context");
      return invokeInternal(method, theClass, null, params);
   }
/** Constructs a new component type object with the given set of parameters.  Calls the newX method generated for the component */
Constructs a new component type object with the given set of parameters.  Calls the newX method generated for the component
Constructs a new component type object with the given set of parameters . Calls the newX method generated for the component
public static Object newComponent(Class theClass, Object... params) {
      String methodName = "new" + CTypeUtil.capitalizePropertyName(CTypeUtil.getClassName(theClass.getName().replace('$', '.')));
      Method method = getMethodFromArgs(theClass, methodName, params);
      if (method == null) {
         return DynUtil.createInstance(theClass, null, params);
      }
      if (method == null)
         throw new IllegalArgumentException("No method named: " + methodName + " with args: " + params + " in: " +  getMethods(theClass, methodName));
      if (!PTypeUtil.hasModifier(method, "static"))
         throw new IllegalArgumentException("Non-static method: " + methodName + " called from a static context");
      return invokeInternal(method, theClass, null, params);
   }
public static Object newComponent ( Class theClass , Object ... params ) { String methodName = "new" + CTypeUtil . capitalizePropertyName ( CTypeUtil . getClassName ( theClass . getName ( ) . replace ( '$' , '.' ) ) ) ; Method method = getMethodFromArgs ( theClass , methodName , params ) ; if ( method == null ) { return DynUtil . createInstance ( theClass , null , params ) ; } if ( method == null ) throw new IllegalArgumentException ( "No method named: " + methodName + " with args: " + params + " in: " + getMethods ( theClass , methodName ) ) ; if ( ! PTypeUtil . hasModifier ( method , "static" ) ) throw new IllegalArgumentException ( "Non-static method: " + methodName + " called from a static context" ) ; return invokeInternal ( method , theClass , null , params ) ; }
Constructs a new component type object with the given set of parameters.
Constructs a new component type object with the given set of parameters .
// If there's no newX method, we'll try the constructor.  Maybe it's a component which does not need graph construction // but does need init, start, etc.