1 10 11 package org.nanocontainer; 12 13 import org.picocontainer.ComponentAdapter; 14 import org.picocontainer.MutablePicoContainer; 15 import org.picocontainer.Parameter; 16 import org.picocontainer.PicoIntrospectionException; 17 import org.picocontainer.PicoRegistrationException; 18 19 import java.net.URL ; 20 21 34 public interface NanoContainer { 35 36 ComponentAdapter registerComponentImplementation(String componentImplementationClassName) throws PicoRegistrationException, ClassNotFoundException , PicoIntrospectionException; 37 38 ComponentAdapter registerComponentImplementation(Object key, String componentImplementationClassName) throws ClassNotFoundException ; 39 40 ComponentAdapter registerComponentImplementation(Object key, String componentImplementationClassName, Parameter[] parameters) throws ClassNotFoundException ; 41 42 43 ComponentAdapter registerComponentImplementation(Object key, 44 String componentImplementationClassName, 45 String [] parameterTypesAsString, 46 String [] parameterValuesAsString) throws PicoRegistrationException, ClassNotFoundException , PicoIntrospectionException; 47 48 ComponentAdapter registerComponentImplementation(String componentImplementationClassName, 49 String [] parameterTypesAsString, 50 String [] parameterValuesAsString) throws PicoRegistrationException, ClassNotFoundException , PicoIntrospectionException; 51 52 57 ClassPathElement addClassLoaderURL(URL url); 58 59 65 MutablePicoContainer getPico(); 66 67 ClassLoader getComponentClassLoader(); 68 69 75 Object getComponentInstanceOfType(String componentType); 76 77 78 MutablePicoContainer addDecoratingPicoContainer(Class picoContainerClass); 79 80 81 } 82 | Popular Tags |