fedora.server.journal
Class ServerWrapper

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

public class ServerWrapper
extends java.lang.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.

Version:
$Id: ServerWrapper.java 5220 2006-11-20 13:52:20 +0000 (Mon, 20 Nov 2006) cwilper $
Author:
jblake@cs.cornell.edu

Constructor Summary
ServerWrapper(Server server)
           
 
Method Summary
 ManagementDelegate getManagementDelegate()
           
 java.lang.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 java.lang.String getRepositoryHash()
                                   throws ServerException
Specified by:
getRepositoryHash in interface ServerInterface
Throws:
ServerException