hi , I have created an handler to intercept all the public methods of a POJO component using auto handler property. By this way i am able to get all the method names via PojoMetadata properties as below.
PojoMetadata pojoMeta = getPojoMetadata(); MethodMetadata[] methodMetadata = pojoMeta.getMethods(); String mName = methodMetadata[i].getMethodName() In the methodMetadata[] array, I am able to get the "$init()" method also able to register with the handler interceptors. Everything works fine until then. Problem comes, when the handler intercepts the "$init()" method, via "public void onEntry(Object pojo, Method method, Object[] args) " , the second argument, "Method method" is not able to retrieve the name of the method when I try to print the method name being intercepted; like this; String xx = method.getName(); This throws an null pointer exception for "$init" method alone. For the rest of all the methods, this works fine properly. Please clarify me, why I could not get the name of "$init" method ? in the intercepted method calls to OnEntry or OnExit or OnFinish. This causes the iPojo could not instantiate and failing in constructor invocation. I request you to correct me if I have done any mistakes. Thanks, Sadish -- View this message in context: http://old.nabble.com/Unable-to-retrieve-%22%24init%22--method-using-handlers-via-interceptor-method-calls-OnEntry..etc-tp32523290p32523290.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

