org.ow2.jonas.versioning
Interface VersioningService
- All Superinterfaces:
- Service, VersioningServiceBase
- All Known Implementing Classes:
- VersioningServiceImpl
public interface VersioningService
- extends Service, VersioningServiceBase
JOnAS Service interface for the versioning service. This interface combines
the versioning service's JMX interface with the JOnAS Service interface. It
also adds internal methods for managing contexts, obtaining version
information from files and watching JNDI bindings.
- Author:
- Frederic Germaneau, S. Ali Tokmen
ALLOWED_SPECIAL_CHARS
static final String ALLOWED_SPECIAL_CHARS
- List of allowed special characters in version identifiers and JNDI
prefixes. If a non-alphanumeric character other than these is found, it
will be replaced by a '-'.
- See Also:
- Constant Field Values
getVersionNumber
String getVersionNumber(File file)
- Parameters:
file
- JAR, WAR or EAR file to read the version number from.
- Returns:
- Version number of file, null if none found.
getVersionNumber
String getVersionNumber(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
- Parameters:
deployable
- JAR, WAR or EAR object to read the version number from.
- Returns:
- Version number of deployable, null if none found.
getVersionID
String getVersionID(File file)
- Parameters:
file
- JAR, WAR or EAR file to read the version ID from.
- Returns:
- Version ID of file, null if none found.
getVersionID
String getVersionID(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
- Parameters:
deployable
- JAR, WAR or EAR object to read the version ID from.
- Returns:
- Version ID of deployable, null if none found.
getPrefix
String getPrefix(File file)
- Parameters:
file
- JAR or EAR object to create a JNDI prefix from.
- Returns:
- JNDI prefix for file, null if none found.
getPrefix
String getPrefix(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
- Parameters:
deployable
- JAR or EAR object to create a JNDI prefix from.
- Returns:
- JNDI prefix for deployable, null if none found.
createJNDIBindingMBeans
void createJNDIBindingMBeans(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
- Creates JNDI binding management beans for a given archive.
- Parameters:
deployable
- JAR, WAR or EAR object to read the JNDI prefix from.
garbageCollectJNDIBindingMBeans
void garbageCollectJNDIBindingMBeans()
- Removes JNDI binding management beans that are not in the JNDI
directory anymore.
Copyright © 2010 OW2 Consortium. All Rights Reserved.