Interface ProxyPlugin<A,S,P>
public interface ProxyPlugin<A,S,P>
Provides information to customise the strategy of a
ProxyDelegate.- Author:
- Fabio Simeoni
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionconvert(Exception fault, ProxyConfig<?, ?> config) Converts a fault raised by aCallinto a fault that can be recognised byProxyDelegateclients.name()Returns the name of the service.Returns the namespace of the servicenewProxy(ProxyDelegate<S> delegate) Returns a proxy with a given delegateresolve(A address, ProxyConfig<?, ?> config) Returns a stub for a given service endpointReturns the gCube name of the service.Returns the gCube class of the service.
-
Method Details
-
name
String name()Returns the name of the service.- Returns:
- the name
-
namespace
String namespace()Returns the namespace of the service- Returns:
- the namespace
-
serviceClass
String serviceClass()Returns the gCube name of the service.- Returns:
- the name
-
serviceName
String serviceName()Returns the gCube class of the service.- Returns:
- the class
-
convert
Converts a fault raised by aCallinto a fault that can be recognised byProxyDelegateclients.- Parameters:
fault- the original faultconfig- the configuration- Returns:
- the converted fault
-
resolve
Returns a stub for a given service endpoint- Parameters:
address- the address of the endpointconfig- the configuration- Returns:
- the stub
- Throws:
Exception- if the address cannot be resolved
-
newProxy
Returns a proxy with a given delegate- Parameters:
delegate- the delegate- Returns:
- the proxy
-