avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Resolved: (AVNSHARP-3) Create a Java like Proxy/InvocationHandler
Date Fri, 05 Mar 2004 01:55:31 GMT

   The following issue has been resolved as FIXED.

   Resolver: hamilton verissimo
       Date: Thu, 4 Mar 2004 5:55 PM

Used Reflection.Emit to generate IL stack directly. Will upload to avalon-sandbox although
its not the correct place for it.
View the issue:

Here is an overview of the issue:
        Key: AVNSHARP-3
    Summary: Create a Java like Proxy/InvocationHandler
       Type: Task

     Status: Resolved
   Priority: Major
 Resolution: FIXED

    Project: Avalon#
             Castle Container
   Fix Fors:
             beta 1
             beta 1

   Reporter: hamilton verissimo

    Created: Wed, 3 Mar 2004 5:48 AM
    Updated: Thu, 4 Mar 2004 5:55 PM

CLI's Proxies are a bit different from Java proxies. Proxiable objects need to extends MarshalByRefObject
or ContextBoundObject. Proxy definition goes through attributes. 

This proposal is to create a component that emits the necessary IL to generate a proxy for
a set of interfaces and uses a invocation handler implementation to dispatch methods.

Something like:

object myproxy = DynamicProxy.create( new Type[]{ typeof(interface1) }, new InvoHandlerImpl());

// At this point myproxy implements interface1 and will dispatch 
// method invocation to InvoHandlerImpl

Seems simple but will use reflection.emit to generate IL code, and this is like writing ASM

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org

View raw message