public class ErrorPrintingServiceFactoryProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
Constructor and Description |
---|
ErrorPrintingServiceFactoryProxy(IPOJOServiceFactory factory)
Wraps a ServiceFactory in an InvocationHandler that will delegate only
get/ungetService methods to the factory.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
'Invoke' methods called when a method is called on the proxy.
|
public ErrorPrintingServiceFactoryProxy(IPOJOServiceFactory factory)
factory
- delegating iPOJO ServiceFactorypublic java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Exception
invoke
in interface java.lang.reflect.InvocationHandler
proxy
- the proxymethod
- the methodargs
- the argumentsjava.lang.Exception
- if something wrong happensInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.