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. > > 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: [email protected] >> For additional commands, e-mail: [email protected] >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > >
-- 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: [email protected] For additional commands, e-mail: [email protected]

