Re: Adding an implementation processor

2006-08-10 Thread Raymond Feng

Hi,

Do we plan to move the ImplementationProcessor framework to the SPI module? 
When I'm working on the databindings, it comes out some requirements for 
extensibility on annotion processing as well.


Thanks,
Raymond

- Original Message - 
From: Ignacio Silva-Lepe [EMAIL PROTECTED]

To: Tuscany Dev tuscany-dev@ws.apache.org
Sent: Friday, July 28, 2006 12:35 PM
Subject: Adding an implementation processor


In the process of adding support for callbacks, I am adding a 
CallbackProcessor to pick up a callback name and member when visiting a 
field or a method. I added a call to register the CallbackProcessor from 
DefaultBoostrappers's createIntrospector, and I added the following entry to 
META-INF/tuscany/implementation.scdl:


component name=implementation.Callback
   system:implementation.system 
class=org.apache.tuscany.core.implementation.processor.CallbackProcessor/

/component

However, when testing, I see that the CallbackProcessor only seems to be 
called for system methods but not for application methods. For instance, 
I see that RefererenceProcessor gets called for setMyService but 
CallbackProcessor does not, whereas both processors get called for 
setMonitor.
One thing that I am not sure about is what to do with the component name 
implementation.Callback in implementation.scdl, if that has any bearing at 
all.


Any ideas as to what I may be missing to get CallbackProcessor to be called 
for methods like setMyService?


Thanks 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Adding an implementation processor

2006-07-28 Thread Ignacio Silva-Lepe
In the process of adding support for callbacks, I am adding a CallbackProcessor 
to pick up a callback name and member when visiting a field or a method. I 
added a call to register the CallbackProcessor from DefaultBoostrappers's 
createIntrospector, and I added the following entry to 
META-INF/tuscany/implementation.scdl:

component name=implementation.Callback
system:implementation.system 
class=org.apache.tuscany.core.implementation.processor.CallbackProcessor/
/component

However, when testing, I see that the CallbackProcessor only seems to be called 
for system methods but not for application methods. For instance, I see 
that RefererenceProcessor gets called for setMyService but CallbackProcessor 
does not, whereas both processors get called for setMonitor.
One thing that I am not sure about is what to do with the component name 
implementation.Callback in implementation.scdl, if that has any bearing at 
all.

Any ideas as to what I may be missing to get CallbackProcessor to be called for 
methods like setMyService?

Thanks

Re: Adding an implementation processor

2006-07-28 Thread Jim Marino

Hi Ignacio,

Can you create a JIRA and attach the code so I can take a look?

Jim

On Jul 28, 2006, at 12:35 PM, Ignacio Silva-Lepe wrote:

In the process of adding support for callbacks, I am adding a  
CallbackProcessor to pick up a callback name and member when  
visiting a field or a method. I added a call to register the  
CallbackProcessor from DefaultBoostrappers's createIntrospector,  
and I added the following entry to META-INF/tuscany/ 
implementation.scdl:


component name=implementation.Callback
system:implementation.system  
class=org.apache.tuscany.core.implementation.processor.CallbackProces 
sor/

/component

However, when testing, I see that the CallbackProcessor only seems  
to be called for system methods but not for application  
methods. For instance, I see that RefererenceProcessor gets called  
for setMyService but CallbackProcessor does not, whereas both  
processors get called for setMonitor.
One thing that I am not sure about is what to do with the component  
name implementation.Callback in implementation.scdl, if that has  
any bearing at all.


Any ideas as to what I may be missing to get CallbackProcessor to  
be called for methods like setMyService?


Thanks



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Adding an implementation processor

2006-07-28 Thread Ignacio Silva-Lepe
Yes, I have already created the JIRA, will attach in a min, but I was hoping 
maybe there was a quick fix off of someone's head. Anyhow, will do.
- Original Message - 
From: Jim Marino [EMAIL PROTECTED]

To: tuscany-dev@ws.apache.org
Sent: Friday, July 28, 2006 4:08 PM
Subject: Re: Adding an implementation processor



Hi Ignacio,

Can you create a JIRA and attach the code so I can take a look?

Jim

On Jul 28, 2006, at 12:35 PM, Ignacio Silva-Lepe wrote:

In the process of adding support for callbacks, I am adding a 
CallbackProcessor to pick up a callback name and member when  visiting a 
field or a method. I added a call to register the  CallbackProcessor from 
DefaultBoostrappers's createIntrospector,  and I added the following 
entry to META-INF/tuscany/ implementation.scdl:


component name=implementation.Callback
system:implementation.system 
class=org.apache.tuscany.core.implementation.processor.CallbackProces 
sor/

/component

However, when testing, I see that the CallbackProcessor only seems  to be 
called for system methods but not for application  methods. For 
instance, I see that RefererenceProcessor gets called  for setMyService 
but CallbackProcessor does not, whereas both  processors get called for 
setMonitor.
One thing that I am not sure about is what to do with the component  name 
implementation.Callback in implementation.scdl, if that has  any 
bearing at all.


Any ideas as to what I may be missing to get CallbackProcessor to  be 
called for methods like setMyService?


Thanks



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]