Using Guice as a customization engine?

11 views
Skip to first unread message

Raffaele Castagno

unread,
Apr 16, 2012, 7:13:17 AM4/16/12
to google...@googlegroups.com
Hi, I'm exploring guice to see if I can use it to implement a requirement for the app I'm working on.

The server side of my app serves static methods as services.
On the client side, those methods are called passing the fully qualified name of the method:
ie.
"com.mycompany.MyServerClass.myServiceMethod"

I have to find a way to customize my app in the least invasive way possible, but I can't control the 
service call itself (that is, I can't change the way the server calls the fully qualified method requested
by client, since is third party...)

So, my idea is something like this.
In myServiceMethod I should be able to do something like:

class MyServerClass
  method myServiceMethod
    IF MyCustomerServerClass is available
      call MyCustomerServerClass.myServiceMethod




Reply all
Reply to author
Forward
0 new messages