|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.resource.maven.repository.SessionedMavenResourceRepository
public final class SessionedMavenResourceRepository
Implementation of the ResourceRepository
interface based on Maven.
Constructor Summary | |
---|---|
SessionedMavenResourceRepository() Convenience constructor to consult the environment to create a connection to a Maven repository. |
|
SessionedMavenResourceRepository(MavenRepository repository) Default constructor. |
Method Summary | |
---|---|
String |
getRemoteRepositoryUrl() Returns the URL to the remote repository. |
ClassPathEnvironment |
resolve(ArtifactId artifactId) Resolves the properties resources from the given artifact. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionedMavenResourceRepository() throws RepositoryException
The connection properties are expected to be on the class path in a properties file named .
RepositoryException
- if the repository cannot be created from environment information.
#init(MavenRepository)
public SessionedMavenResourceRepository(MavenRepository repository) throws NullPointerException
repository
- the repository adapter to connect to the Maven infrastructure.
NullPointerException
- if
repository
is
null
.
Method Detail |
---|
public ClassPathEnvironment resolve(ArtifactId artifactId) throws RepositoryException
ResourceRepository
resolve
in interface
ResourceRepository
artifactId
- the identifier of the artifact containing properties resources.
RepositoryException
- on any problem accessing the repository.
public String getRemoteRepositoryUrl()
ResourceRepository
getRemoteRepositoryUrl
in interface
ResourceRepository
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |