1 8 package org.apache.avalon.phoenix.interfaces; 9 10 import org.apache.avalon.framework.configuration.Configuration; 11 import org.apache.avalon.framework.configuration.ConfigurationException; 12 import org.apache.avalon.framework.logger.Logger; 13 import org.apache.avalon.phoenix.metadata.SarMetaData; 14 import org.apache.excalibur.threadcontext.ThreadContext; 15 import java.io.InputStream ; 16 17 22 public interface ApplicationContext 23 { 24 String ROLE = ApplicationContext.class.getName(); 25 26 SarMetaData getMetaData(); 27 28 ThreadContext getThreadContext(); 29 30 34 void requestShutdown(); 35 36 45 void exportObject( String name, Class [] interfaceClasses, Object object ) 46 throws Exception ; 47 48 53 void unexportObject( String name ) 54 throws Exception ; 55 56 61 ClassLoader getClassLoader(); 62 63 69 InputStream getResourceAsStream( String name ); 70 71 77 Configuration getConfiguration( String component ) 78 throws ConfigurationException; 79 80 87 Logger getLogger( String name ); 88 } 89 | Popular Tags |