org.apache.xindice.server
Class VersionProxy
java.lang.Object
|
+--org.apache.xindice.server.VersionProxy
- All Implemented Interfaces:
- Named, Versioning
- public final class VersionProxy
- extends java.lang.Object
- implements Versioning
VersionProxy provides a conduit to a package from a module that may
or may not belong to a package of its own. VersionProxy also
provides a mechanism for creating unique package names for completely private
resource storage. Gateway uses the latter method of proxying to
store a session's persistent state.
Method Summary |
java.lang.String |
getName()
getName retrieves the contextually important name of the object |
java.lang.String |
getPackageName()
getPackageName returns the package name for this Versioning
object. |
float |
getVersion()
getVersion returns the version number for this package. |
void |
setName(java.lang.String name)
|
void |
setPackageName(java.lang.String packagename)
|
void |
setVersion(float version)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersionProxy
public VersionProxy()
VersionProxy
public VersionProxy(java.lang.Object owner)
VersionProxy
public VersionProxy(java.lang.String packagename)
setName
public void setName(java.lang.String name)
setVersion
public void setVersion(float version)
setPackageName
public void setPackageName(java.lang.String packagename)
getName
public java.lang.String getName()
- Description copied from interface:
Named
- getName retrieves the contextually important name of the object
- Specified by:
getName
in interface Named
- Following copied from interface:
org.apache.xindice.util.Named
- Returns:
- The object's name
getVersion
public float getVersion()
- Description copied from interface:
Versioning
- getVersion returns the version number for this package. It is
conceivable that a single instance of Xindice may be running two
different versions of the same appliction. getVersion allows
an added ambiguity check to be performed in these cases.
- Specified by:
getVersion
in interface Versioning
- Following copied from interface:
org.apache.xindice.server.Versioning
- Returns:
- The package version
getPackageName
public java.lang.String getPackageName()
- Description copied from interface:
Versioning
- getPackageName returns the package name for this Versioning
object.
- Specified by:
getPackageName
in interface Versioning
- Following copied from interface:
org.apache.xindice.server.Versioning
- Returns:
- The package name
Copyright (c) 1999-2001 The Apache Software Foundation