org.ops4j.pax.exam.container.def.options
Class RepositoryOptionImpl

java.lang.Object
  extended by org.ops4j.pax.exam.container.def.options.RepositoryOptionImpl
All Implemented Interfaces:
RepositoryOption, Option

public class RepositoryOptionImpl
extends java.lang.Object
implements RepositoryOption

RepositoryOption implementations. This is the implementation that bridges nice api with actual string representation in pax runner.

Since:
0.3.0, December 19, 2008
Author:
Toni Menzel (tonit), Alin Dreghiciu (adreghiciu@gmail.com)

Constructor Summary
RepositoryOptionImpl(java.lang.String repositoryUrl)
          Constructor.
 
Method Summary
 RepositoryOptionImpl allowSnapshots()
          Mark repository as allowing snapshots.
 RepositoryOptionImpl disableReleases()
          Mark repository as not allowing releases.
 java.lang.String getRepository()
          Returns the full repository url.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepositoryOptionImpl

public RepositoryOptionImpl(java.lang.String repositoryUrl)
Constructor.

Parameters:
repositoryUrl - repository url (cannot be null or empty)
Throws:
java.lang.IllegalArgumentException - - If repository url is null or empty
Method Detail

allowSnapshots

public RepositoryOptionImpl allowSnapshots()
Mark repository as allowing snapshots.

Specified by:
allowSnapshots in interface RepositoryOption
Returns:
this for fluent api

disableReleases

public RepositoryOptionImpl disableReleases()
Mark repository as not allowing releases.

Specified by:
disableReleases in interface RepositoryOption
Returns:
this for fluent api

getRepository

public java.lang.String getRepository()
Returns the full repository url.

Returns:
the full repository as given plus eventual snapshot/release tags (cannot be null or empty)
Throws:
java.lang.IllegalStateException - - if both snapshots and releases are not allowed

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.