You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by ji...@apache.org on 2004/03/05 02:55:31 UTC
[jira] Resolved: (AVNSHARP-3) Create a Java like Proxy/InvocationHandler
Message:
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:
http://nagoya.apache.org/jira/secure/ViewIssue.jspa?key=AVNSHARP-3
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#
Components:
Castle Container
Fix Fors:
beta 1
Versions:
beta 1
Assignee:
Reporter: hamilton verissimo
Created: Wed, 3 Mar 2004 5:48 AM
Updated: Thu, 4 Mar 2004 5:55 PM
Description:
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 :-(
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org