org.gcube.common.clients.delegates
Class AbstractDelegate<A,S,C extends ProxyConfig<A,S>>

java.lang.Object
  extended by org.gcube.common.clients.delegates.AbstractDelegate<A,S,C>
Type Parameters:
A - the type of service addresses
S - the type of service stubs
C - the type of ProxyConfig used by the delegate
All Implemented Interfaces:
ProxyDelegate<S>
Direct Known Subclasses:
DirectDelegate, DiscoveryDelegate

public abstract class AbstractDelegate<A,S,C extends ProxyConfig<A,S>>
extends Object
implements ProxyDelegate<S>

Partial implementation of ProxyDelegates

Author:
Fabio Simeoni

Constructor Summary
AbstractDelegate(C config)
          Constructs an instance with a given configuration
 
Method Summary
 C config()
          Returns the configuration of the proxy.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.gcube.common.clients.delegates.ProxyDelegate
make
 

Constructor Detail

AbstractDelegate

public AbstractDelegate(C config)
Constructs an instance with a given configuration

Parameters:
config - the configuration
Method Detail

config

public C config()
Description copied from interface: ProxyDelegate
Returns the configuration of the proxy.

Specified by:
config in interface ProxyDelegate<S>
Returns:
the configuration

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.