org.planx.xmlstore.koala.storage
Class PolicyFactory

java.lang.Object
  extended by org.planx.xmlstore.koala.storage.PolicyFactory

public class PolicyFactory
extends Object

A factory for creating policy instances. Override the instance method to change the policy created.

Author:
Thomas Ambus

Constructor Summary
PolicyFactory()
           
 
Method Summary
 IOPolicy<LocalLocator> createIOPolicy(Segment... segments)
          Returns a StoragePolicy instance.
 void setManager(SegmentManager man)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyFactory

public PolicyFactory()
Method Detail

setManager

public void setManager(SegmentManager man)

createIOPolicy

public IOPolicy<LocalLocator> createIOPolicy(Segment... segments)
                                      throws IOException
Returns a StoragePolicy instance.

Throws:
IOException


Copyright © 2004-2005 Plan-X. All Rights Reserved.