de.smartics.properties.resource.maven.repository
Class SessionedMavenResourceRepository

Package class diagram package SessionedMavenResourceRepository
java.lang.Object
  extended by 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.


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()
           
 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
 

Constructor Detail

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 defined by ResourceRepositoryProperties.

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.
Method Detail

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.