SwitchYard: Core 0.6.0.Beta2

org.switchyard.common.version
Class BaseVersionFactory

java.lang.Object
  extended by org.switchyard.common.version.VersionFactory
      extended by org.switchyard.common.version.BaseVersionFactory
Direct Known Subclasses:
ManifestVersionFactory

public abstract class BaseVersionFactory
extends VersionFactory

BaseVersionFactory.

Author:
David Ward <dward@jboss.org> (C) 2012 Red Hat Inc.

Constructor Summary
BaseVersionFactory()
           
 
Method Summary
 Version getVersion(Query... queries)
          Gets the first version matching the provided queries.
abstract  Set<Version> getVersions(boolean returnFirstOnly, Query... queries)
          Gets all (or the first) versions matching the provided queries.
 Set<Version> getVersions(Query... queries)
          Gets all versions matching the provided queries.
 
Methods inherited from class org.switchyard.common.version.VersionFactory
instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseVersionFactory

public BaseVersionFactory()
Method Detail

getVersion

public final Version getVersion(Query... queries)
Gets the first version matching the provided queries.

Specified by:
getVersion in class VersionFactory
Parameters:
queries - the queries
Returns:
the first matching version

getVersions

public final Set<Version> getVersions(Query... queries)
Gets all versions matching the provided queries.

Specified by:
getVersions in class VersionFactory
Parameters:
queries - the queries
Returns:
all the matching versions

getVersions

public abstract Set<Version> getVersions(boolean returnFirstOnly,
                                         Query... queries)
Gets all (or the first) versions matching the provided queries.

Parameters:
returnFirstOnly - true if only return the first matching version, false if returning all matching versions
queries - the queries
Returns:
all the matching (or first) version

SwitchYard: Core 0.6.0.Beta2

JBoss by Red Hat