I know that there are several ways of solving this problem - actually
I am using one of them. I wanted to ask for the optimal one.

I have a bunch of Java interfaces which are 1:1 compatible with PL/SQL
packages. For example:

public interface FooService {
  void doSomething(String value);
}

Will be automatically translated into call of:

PROCEDURE do_something(p_value in VARCHAR2);


I have also general service with method:

SqlInvoker.invoke(Method method, Object[] args)

It could be used either by interceptor, or by InvocationHandler. The
method parameter is method of interface like FooService, and the args
parameter is array of arguments passed to the method (e.g.
doSomething())

My problem could be defined as total interception of method calls.
Does guice support this kind of "interface interception", where there
is no need for NoOp underlaying class (I use such approach at the
moment with help of cglib)?

-- 
"Meaning is differential not referential"

kazik 'morisil' pogoda
http://blog.xemantic.com/

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to