gr.uoa.di.madgik.grs.proxy
Class ProxyFactory

java.lang.Object
  extended by gr.uoa.di.madgik.grs.proxy.ProxyFactory

public class ProxyFactory
extends java.lang.Object

This utility class instantiates the appropriate IReaderProxy implementation that can serve a reader to access the IBuffer managed through the IWriterProxy that created the provided URI

Author:
gpapanikos

Constructor Summary
ProxyFactory()
           
 
Method Summary
static IReaderProxy getProxy(java.net.URI locator)
          Instantiates the appropriate IReaderProxy that can manage the provided URI locator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyFactory

public ProxyFactory()
Method Detail

getProxy

public static IReaderProxy getProxy(java.net.URI locator)
                             throws GRS2ProxyException
Instantiates the appropriate IReaderProxy that can manage the provided URI locator. After the proxy is instantiated, the IReaderProxy.fromLocator(URI) method is invoked to populate the proxy with the needed information provided by the URI

Parameters:
locator - The locator to use
Returns:
the instantiated IReaderProxy
Throws:
GRS2ProxyException - the proxy could not be instantiated