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

Field Summary
static String ALLOWED_SPECIAL_CHARS
          List of allowed special characters in version identifiers and JNDI prefixes.
 
Fields inherited from interface org.ow2.jonas.versioning.VersioningServiceBase
DEFAULT, DISABLED, POLICIES, PRIVATE, RESERVED
 
Method Summary
 void createJNDIBindingMBeans(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Creates JNDI binding management beans for a given archive.
 void garbageCollectJNDIBindingMBeans()
          Removes JNDI binding management beans that are not in the JNDI directory anymore.
 String getPrefix(File file)
           
 String getPrefix(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
           
 String getVersionID(File file)
           
 String getVersionID(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
           
 String getVersionNumber(File file)
           
 String getVersionNumber(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
           
 
Methods inherited from interface org.ow2.jonas.service.Service
getName, init, isStarted, setName, start, stop
 
Methods inherited from interface org.ow2.jonas.versioning.VersioningServiceBase
getBaseName, getDefaultDeploymentPolicy, getPolicies, getPrefix, getVersionID, getVersionNumber, isVersioningEnabled, setDefaultDeploymentPolicy
 

Field Detail

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
Method Detail

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.