|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.client.proxy.HelperProxyFactory
public class HelperProxyFactory
Creates augmented Java proxy objects for other proxies. This allows you to add or redefine methods on proxies. For example, if older versions of a service don't support some method, you can fallback to using an older operation that is supported.
It is also possible to add entirely new methods, although this is discouraged. It is cleaner to write a separate helper class in this case.
RawProxyInterface| Constructor Summary | |
|---|---|
HelperProxyFactory(ProxyFactory rawProxyFactory,
Map<Class,Class<? extends ProxyHelpers>> helperRegistry)
Constructor. |
|
| Method Summary | ||
|---|---|---|
void |
addHelper(Class<?> iface,
Class<? extends ProxyHelpers> helpers)
Add a helper class to a proxy class |
|
|
createProxy(org.apache.axis.message.addressing.EndpointReferenceType target,
Class<T> iface)
Create a proxy. |
|
ProxyFactory |
getRawProxyFactory()
|
|
void |
validateHelper(Class<?> iface,
Class<? extends ProxyHelpers> helpers)
Check that helper is valid. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HelperProxyFactory(ProxyFactory rawProxyFactory,
Map<Class,Class<? extends ProxyHelpers>> helperRegistry)
rawProxyFactory - a factory which produces the proxies to be wrappedhelperRegistry - maps from interfaces (as passed to createProxy(org.apache.axis.message.addressing.EndpointReferenceType, java.lang.Class) ) to their helpers| Method Detail |
|---|
public ProxyFactory getRawProxyFactory()
public void addHelper(Class<?> iface,
Class<? extends ProxyHelpers> helpers)
iface - the class of the proxyhelper - the class of the helper for the proxy
public void validateHelper(Class<?> iface,
Class<? extends ProxyHelpers> helpers)
public <T> T createProxy(org.apache.axis.message.addressing.EndpointReferenceType target,
Class<T> iface)
createProxy in interface ProxyFactorytarget - the EPR of the remote resourceiface - the Java interface which the proxy object will implement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||