com.cyclops.albumbuilder
Class ComponentLoader

java.lang.Object
  extended bycom.cyclops.albumbuilder.ComponentLoader

public class ComponentLoader
extends Object

Temporary component loader class, it'll be replaced by some common framework in the future 惩前毖后,治病救人

Since:
2003-5-30 10:59:24
Author:
joel guo

Constructor Summary
ComponentLoader(Configuration conf)
          Constructor method for class ComponentLoader
 
Method Summary
 void executeComponent(Class clazz)
          Method executeComponent()
 void executeComponent(String className)
          Method executeComponent()
 Object getComponent(Class clazz)
          Method getComponent()
 Object getComponent(String className)
          Method getComponent()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentLoader

public ComponentLoader(Configuration conf)
Constructor method for class ComponentLoader

Parameters:
conf - Configuration object
Method Detail

executeComponent

public void executeComponent(Class clazz)
                      throws Exception
Method executeComponent()

Parameters:
clazz - Requested class
Throws:
Exception - Just throw it out

executeComponent

public void executeComponent(String className)
                      throws Exception
Method executeComponent()

Parameters:
className - Name of requested class
Throws:
Exception - Just throw it out

getComponent

public Object getComponent(Class clazz)
                    throws Exception
Method getComponent()

Parameters:
clazz - Class of the component
Returns:
Instance of created component
Throws:
Exception - Just throw it out

getComponent

public Object getComponent(String className)
                    throws Exception
Method getComponent()

Parameters:
className - Name of requested class
Returns:
Instance of created component
Throws:
Exception - Just throw it out


Copyright © 2003 Cyclops Group. All Rights Reserved.