1 17 18 package org.apache.avalon.repository; 19 20 import java.net.URL ; 21 import javax.naming.directory.Attributes ; 22 23 28 public interface Repository 29 { 30 33 String KEY = "urn:assembly:repository" ; 34 35 39 String SEPERATOR = ":" ; 40 41 48 Attributes getAttributes( Artifact artifact ) 49 throws RepositoryException ; 50 51 57 URL getResource( Artifact artifact ) throws RepositoryException; 58 59 65 Artifact[] getCandidates( Class service ); 66 67 78 ClassLoader getClassLoader( Artifact artifact ) 79 throws RepositoryException ; 80 81 93 ClassLoader getClassLoader( ClassLoader parent, Artifact artifact ) 94 throws RepositoryException ; 95 } 96 | Popular Tags |