org.switchyard.common.version
Class BaseVersionFactory
java.lang.Object
org.switchyard.common.version.VersionFactory
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseVersionFactory
public BaseVersionFactory()
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 versionsqueries
- the queries
- Returns:
- all the matching (or first) version
JBoss by Red Hat