EnhydraAppTestControllerFactory.java :  » J2EE » Enhydra-Demos » org » hamletsoft » enhydra » cactus » spec » Java Open Source

Java Open Source » J2EE » Enhydra Demos 
Enhydra Demos » org » hamletsoft » enhydra » cactus » spec » EnhydraAppTestControllerFactory.java
/*
 *  CactusForEnhydra
 *
 *  Enhydra super-servlet specification object
 *  
 */
package  org.hamletsoft.enhydra.cactus.spec;


public class EnhydraAppTestControllerFactory {
    
    /**
     * Constructor can't be used.
     */
    private EnhydraAppTestControllerFactory() {
    }

    /**
     * Create a EnhydraAppTestController as state object/value object/data transfer object
     */
    public static EnhydraAppTestController getEnhydraAppTestController(String fullClassName) {
        
        EnhydraAppTestController result = null;
       
        Class objectClass = null;

        try {
            // Create the value object
       
      
         objectClass = Class.forName(fullClassName);
                                   
          result = (EnhydraAppTestController)objectClass.newInstance();
               
                       
                    
      } catch (Exception ex) {
            System.out.println("Error on creating the object" + ex);
        }

        return result;
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.