1 17 18 package org.apache.avalon.repository.provider; 19 20 import java.net.URL ; 21 import java.io.File ; 22 import java.util.jar.Manifest ; 23 24 import org.apache.avalon.repository.Artifact; 25 import org.apache.avalon.repository.Repository; 26 import org.apache.avalon.repository.RepositoryException; 27 28 29 35 public interface InitialContext 36 { 37 41 String IMPLEMENTATION_KEY = "avalon.repository.implementation"; 42 43 46 String ONLINE_KEY = "avalon.repository.online"; 47 48 52 String FACTORY_ARTIFACTS_KEY = "avalon.repository.artifacts"; 53 54 57 String CACHE_KEY = "avalon.repository.cache"; 58 59 63 String HOSTS_KEY = "avalon.repository.hosts"; 64 65 String PROXY_HOST_KEY = "avalon.repository.proxy.host"; 66 String PROXY_PORT_KEY = "avalon.repository.proxy.port"; 67 String PROXY_USERNAME_KEY = "avalon.repository.proxy.username"; 68 String PROXY_PASSWORD_KEY = "avalon.repository.proxy.password"; 69 70 String LINE = 71 "\n-----------------------------------------------------------"; 72 73 80 String getApplicationKey(); 81 82 87 boolean getOnlineMode(); 88 89 94 File getInitialCacheDirectory(); 95 96 101 File getInitialWorkingDirectory(); 102 103 107 String [] getInitialHosts(); 108 109 113 Factory getInitialFactory(); 114 115 119 Repository getRepository(); 120 121 127 Builder newBuilder( Artifact artifact ) 128 throws Exception ; 129 130 137 Builder newBuilder( ClassLoader classloader, Artifact artifact ) 138 throws Exception ; 139 140 145 Manifest install( URL url ) throws RepositoryException; 146 147 } 148 | Popular Tags |