1 17 18 package org.apache.avalon.repository.provider; 19 20 21 import java.io.File ; 22 23 import org.apache.avalon.repository.Artifact; 24 25 26 33 public interface InitialContextFactory 34 { 35 45 String [] KEYS = 46 new String []{ 47 InitialContext.ONLINE_KEY, 48 InitialContext.IMPLEMENTATION_KEY, 49 InitialContext.CACHE_KEY, 50 InitialContext.HOSTS_KEY, 51 InitialContext.FACTORY_ARTIFACTS_KEY }; 52 53 57 File getHomeDirectory(); 58 59 63 void setFactoryArtifacts( Artifact[] artifacts ); 64 65 72 void setOnlineMode( boolean policy ); 73 74 79 void setParentClassLoader( ClassLoader classloader ); 80 81 91 void setImplementation( Artifact artifact ); 92 93 99 void setCacheDirectory( File cache ); 100 101 107 void setProxyHost( String host ); 108 109 114 void setProxyPort( int port ); 115 116 121 void setProxyUsername( String username ); 122 123 128 void setProxyPassword( String password ); 129 130 139 void setHosts( String [] hosts ); 140 141 149 InitialContext createInitialContext(); 150 } 151 | Popular Tags |