org.ow2.petals.registry.api.context
Class Workspace

java.lang.Object
  extended by org.ow2.petals.registry.api.context.Workspace
All Implemented Interfaces:
Initializable

public class Workspace
extends java.lang.Object
implements Initializable

The registry workspace. The registry folder tree is defined like : $rootPath/registry/workspace/$registryName/repository so that multiple registries woth the same rootPath can cohabit.

Author:
Christophe HAMERLING - eBM WebSourcing

Constructor Summary
protected Workspace(java.io.File rootPath, java.lang.String registryName)
          Creates a new instance of Workspace
 
Method Summary
 void clean()
          Clean the workspace
 java.io.File getRegistryRootPath()
           
 java.io.File getRepositoryRootPath()
           
 void init()
          Initialize the object
 boolean isInitialized()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Workspace

protected Workspace(java.io.File rootPath,
                    java.lang.String registryName)
Creates a new instance of Workspace

Method Detail

init

public void init()
          throws LifeCycleException
Description copied from interface: Initializable
Initialize the object

Specified by:
init in interface Initializable
Throws:
LifeCycleException

isInitialized

public boolean isInitialized()
Specified by:
isInitialized in interface Initializable
Returns:

clean

public void clean()
Clean the workspace


getRepositoryRootPath

public final java.io.File getRepositoryRootPath()
Returns:

getRegistryRootPath

public final java.io.File getRegistryRootPath()


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.