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/03 14:50:31 UTC
[jira] Created: (AVNSHARP-3) Create a Java like Proxy/InvocationHandler
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
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: Open
Priority: Major
Project: Avalon#
Components:
Castle Container
Fix Fors:
beta 1
Versions:
beta 1
Assignee: hamilton verissimo
Reporter: hamilton verissimo
Created: Wed, 3 Mar 2004 5:48 AM
Updated: Wed, 3 Mar 2004 5:48 AM
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