public void setAsText(final String text) throws IllegalArgumentException {
    """
	Build a Class[] from a comma/whitespace seperated list of classes
	@param text - the class name list
    """
      ClassLoader loader = Thread.currentThread().getContextClassLoader();
      StringTokenizer tokenizer = new StringTokenizer(text, ", \t\r\n");
      ArrayList<Class<?>> classes = new ArrayList<Class<?>>();
      while( tokenizer.hasMoreTokens() == true )
      {
         String name = tokenizer.nextToken();
         try
         {
            Class<?> c = loader.loadClass(name);
            classes.add(c);
         }
         catch(ClassNotFoundException e)
         {
            throw new IllegalArgumentException("Failed to find class: "+name);
         }
      }

      Class<?>[] theValue = new Class[classes.size()];
      classes.toArray(theValue);
      setValue(theValue);
   }
public void setAsText(final String text) throws IllegalArgumentException
   {
      ClassLoader loader = Thread.currentThread().getContextClassLoader();
      StringTokenizer tokenizer = new StringTokenizer(text, ", \t\r\n");
      ArrayList<Class<?>> classes = new ArrayList<Class<?>>();
      while( tokenizer.hasMoreTokens() == true )
      {
         String name = tokenizer.nextToken();
         try
         {
            Class<?> c = loader.loadClass(name);
            classes.add(c);
         }
         catch(ClassNotFoundException e)
         {
            throw new IllegalArgumentException("Failed to find class: "+name);
         }
      }

      Class<?>[] theValue = new Class[classes.size()];
      classes.toArray(theValue);
      setValue(theValue);
   }
public void setAsText ( final String text ) throws IllegalArgumentException { ClassLoader loader = Thread . currentThread ( ) . getContextClassLoader ( ) ; StringTokenizer tokenizer = new StringTokenizer ( text , ", \t\r\n" ) ; ArrayList < Class < ? > > classes = new ArrayList < Class < ? > > ( ) ; while ( tokenizer . hasMoreTokens ( ) == true ) { String name = tokenizer . nextToken ( ) ; try { Class < ? > c = loader . loadClass ( name ) ; classes . add ( c ) ; } catch ( ClassNotFoundException e ) { throw new IllegalArgumentException ( "Failed to find class: " + name ) ; } } Class < ? > [ ] theValue = new Class [ classes . size ( ) ] ; classes . toArray ( theValue ) ; setValue ( theValue ) ; }
Build a Class[] from a comma/whitespace seperated list of classes
@param text - the class name list
Build a Class [] from a comma / whitespace seperated list of classes