de.smartics.properties.resource.maven.repository
Class SessionedMavenResourceRepository
java.lang.Object
de.smartics.properties.resource.maven.repository.SessionedMavenResourceRepository
-
All Implemented Interfaces:
-
de.smartics.properties.resource.repository.ResourceRepository
-
public final class SessionedMavenResourceRepository
-
extends
Object
-
implements de.smartics.properties.resource.repository.ResourceRepository
Implementation of the ResourceRepository
interface based on Maven.
Method Summary |
String |
getRemoteRepositoryUrl() |
de.smartics.properties.resource.domain.ClassPathEnvironment |
resolve(de.smartics.properties.resource.domain.ArtifactId artifactId) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionedMavenResourceRepository
public SessionedMavenResourceRepository()
throws de.smartics.properties.resource.repository.RepositoryException
-
Convenience constructor to consult the environment to create a connection to a Maven repository.
The connection properties are expected to be on the class path in a properties file named .
-
Throws:
-
de.smartics.properties.resource.repository.RepositoryException
- if the repository cannot be created from environment information.
-
See Also:
-
#init(MavenRepository)
SessionedMavenResourceRepository
public SessionedMavenResourceRepository(MavenRepository repository)
throws NullPointerException
-
Default constructor.
-
Parameters:
-
repository
- the repository adapter to connect to the Maven infrastructure.
-
Throws:
-
NullPointerException
- if
repository
is
null
.
resolve
public de.smartics.properties.resource.domain.ClassPathEnvironment resolve(de.smartics.properties.resource.domain.ArtifactId artifactId)
throws de.smartics.properties.resource.repository.RepositoryException
-
-
Specified by:
-
resolve
in interface
de.smartics.properties.resource.repository.ResourceRepository
-
-
Throws:
-
de.smartics.properties.resource.repository.RepositoryException
getRemoteRepositoryUrl
public String getRemoteRepositoryUrl()
-
-
Specified by:
-
getRemoteRepositoryUrl
in interface
de.smartics.properties.resource.repository.ResourceRepository
-
Copyright © 2012-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.