|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.deployment.versioning.VersioningService
@Service @Scoped(value=org.jvnet.hk2.component.PerLookup.class) public class VersioningService
This service provides methods to handle application names in the versioning context
| Constructor Summary | |
|---|---|
VersioningService()
|
|
| Method Summary | |
|---|---|
String |
getEnabledVersion(String name,
String target)
Search for the enabled version of the given application. |
Map<String,Set<String>> |
getEnabledVersionInReferencedTargetsForExpression(String versionExpression)
Search the enabled versions on the referenced targets of each version matched by the expression. |
Map<String,Set<String>> |
getEnabledVersionsInReferencedTargets(String versionIdentifier)
Search the enabled versions on the referenced targets of the given version. |
List<String> |
getMatchedVersions(String name,
String target)
Process the expression matching operation of the given application name. |
String |
getVersionFromSameDir(File dir)
Get the version directory-deployed from the given directory |
void |
handleDisable(String appName,
String target,
ActionReport report)
Disable the enabled version of the application if it exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VersioningService()
| Method Detail |
|---|
public Map<String,Set<String>> getEnabledVersionInReferencedTargetsForExpression(String versionExpression)
throws VersioningSyntaxException
versionExpression - a version expression (that contains wildcard character)
VersioningSyntaxException - if getEnabledVersion throws an exception
public Map<String,Set<String>> getEnabledVersionsInReferencedTargets(String versionIdentifier)
throws VersioningSyntaxException
versionIdentifier - a version expression (that contains wildcard character)
VersioningSyntaxException - if getEnabledVersion throws an exception
public final String getEnabledVersion(String name,
String target)
throws VersioningSyntaxException
name - the application nametarget - an option supply from admin command, it's retained for
compatibility with other releases
VersioningSyntaxException - if getUntaggedName throws an exception
public final List<String> getMatchedVersions(String name,
String target)
throws VersioningSyntaxException,
VersioningException
name - the application name containing the version expressiontarget - the target we are looking for the verisons
VersioningSyntaxException
VersioningException
public void handleDisable(String appName,
String target,
ActionReport report)
throws VersioningSyntaxException
appName - application's nametarget - an option supply from admin command, it's retained for
compatibility with other releasesreport - ActionReport, report object to send back to client.
VersioningSyntaxException
public String getVersionFromSameDir(File dir)
throws VersioningSyntaxException
directory -
VersioningSyntaxException - *
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||