org.fcrepo.server.journal
Class ServerWrapper

java.lang.Object
  extended by org.fcrepo.server.journal.ServerWrapper
All Implemented Interfaces:
ServerInterface

public class ServerWrapper
extends Object
implements ServerInterface

Wrap a Server in an object that implements an interface, so it can be passed to the JournalWorker classes and their dependents.

It's also easy to mock, for unit tests.

Author:
Jim Blake

Constructor Summary
ServerWrapper(Server server)
           
 
Method Summary
 ManagementDelegate getManagementDelegate()
           
 String getRepositoryHash()
           
 boolean hasInitialized()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerWrapper

public ServerWrapper(Server server)
Method Detail

hasInitialized

public boolean hasInitialized()
Specified by:
hasInitialized in interface ServerInterface

getManagementDelegate

public ManagementDelegate getManagementDelegate()
Specified by:
getManagementDelegate in interface ServerInterface

getRepositoryHash

public String getRepositoryHash()
                         throws ServerException
Specified by:
getRepositoryHash in interface ServerInterface
Throws:
ServerException


Copyright © 2011 DuraSpace. All Rights Reserved.