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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]