felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sadish M <sadi...@gmail.com>
Subject Re: ipojo custom handlers - auto attached handlers - issue in attaching to specific components
Date Wed, 05 Oct 2011 16:54:47 GMT


Sadish wrote:
> 
> Hi clement,
> I have created the issue with brief description.  Here is the link for the
> JIRA issue.
> 
>  https://issues.apache.org/jira/browse/FELIX-3148
> https://issues.apache.org/jira/browse/FELIX-3148 
> 
> We can discuss about this, if something is not clear or if you have any
> concerns or opinions,  regarding this issue. Here is my email id: 
> sadishm@gmail.com
> 
> Thanks,
> Sadish
> 
> 



clement escoffier wrote:
> 
> 
> On 30.09.2011, at 16:45, Sadish M wrote:
> 
>> 
>> 
>> clement escoffier wrote:
>>> 
>>> Hi,
>>> 
>>> On 27.09.2011, at 11:25, Sadish M wrote:
>>> 
>>>> 
>>>> Dear all,
>>>> 
>>>> I have an issues concerning the custom auto handlers in ipojo. I have
>>>> created an handler (say Handler-Auto), I want this handler to be auto
>>>> attached to a POJO component instances (say Comp-1) without touching
>>>> the
>>>> metadata of POJO components.
>>>> To achieve this, we need to set the
>>>> "org.apache.felix.ipojo.handler.auto.primitive" variable in the system
>>>> property with the list of handlers as specified in the below link:
>>>> 
>>>> https://issues.apache.org/jira/browse/FELIX-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel#issue-tabs
>>>> https://issues.apache.org/jira/browse/FELIX-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel#issue-tabs

>>>> 
>>>> The problem  is, when I do like this, my handler (Handler-Auto) is
>>>> attached
>>>> to all the components or instances that are created or deployed over
>>>> the
>>>> system. To intercept methods or fields from a  particular component we
>>>> need
>>>> to add filter at the handler.  But its too late to add filter after
>>>> attaching handlers with all unnecessary stuffs. 
>>>> 
>>>> Instead of attaching the handler to all the components,   Is there
>>>> anyway
>>>> that, this handler (Handler-Auto) can me made to be attached to a
>>>> specific
>>>> components or instances ? as per the user wish. 
>>>> 
>>>> It would be great if we have this feature and it ll become very
>>>> dynamic. 
>>>> 
>>> 
>>> Unfortunately, it's not supported. auto-handler are plugged to all
>>> instances. However, the handler can detect if it has to be plugged or
>>> not
>>> on the instance by checking a configuration property or whatever. If the
>>> handler does not need to be plugged on an instance, it should just not
>>> register any interceptors and just do nothing. 
>>> 
>>> Regards,
>>> 
>>> Clement
>>> 
>>> 
>>> Hi,
>>> Can I create a JIRA issue to enhance the way iPojo is managing the
>>> (auto)
>>> handlers. ?
>>> this featured enhancement would make the handlers more specific and
>>> dynamic.  
>>> 
> 
> Please do. If you have an idea about how it should be done, please mention
> it in the jira ticket.
> 
> Regards,
> 
> Clement
> 
>>> regards,
>>> Sadish
>>> 
>>> 
>>> 
>>>> Please help if there is any other way to do this or what could be the
>>>> solution to achieve this ??
>>>> 
>>>> thanks for your help in advance!
>>>> 
>>>> Thanks,
>>>> Sadish
>>>> -- 
>>>> View this message in context:
>>>> http://old.nabble.com/ipojo-custom-handlers---auto-attached-handlers---issue-in-attaching-to-specific-components-tp32520564p32520564.html
>>>> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>>> For additional commands, e-mail: users-help@felix.apache.org
>>>> 
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>> For additional commands, e-mail: users-help@felix.apache.org
>>> 
>>> 
>>> 
>> 
>> -- 
>> View this message in context:
>> http://old.nabble.com/ipojo-custom-handlers---auto-attached-handlers---issue-in-attaching-to-specific-components-tp32520564p32569429.html
>> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/ipojo-custom-handlers---auto-attached-handlers---issue-in-attaching-to-specific-components-tp32520564p32595542.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Mime
View raw message