is there any way to access the low level implementation?

View: New views
2 Messages — Rating Filter:   Alert me  

is there any way to access the low level implementation?

by Chiron :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,i am a beginner to felix. it is a great work.
i am trying to embeded felix to a framework, so i need to read some customized infomation from the bundle. like the annotation marked on Activator or services or files in the jar.
but i find that with BundleEvent, there is no way to access Activator, not to mention the jar file.
even i tried to extend Felix, most of the implementation's modifier is package accessable. which makes it invisible to its sub class!
i know the encapsulation is important, but there should be some inferfaces exposed, or the emdeded work would not be easily.

or did i miss something? is there any other way?

Re: is there any way to access the low level implementation?

by Karl Pauls :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Oct 23, 2009 at 4:59 AM, Chiron <brodie.chi@...> wrote:
>
> hi,i am a beginner to felix. it is a great work.
> i am trying to embeded felix to a framework, so i need to read some
> customized infomation from the bundle. like the annotation marked on
> Activator or services or files in the jar.

You can get the Bundle representation from the BundleEvent
(event.getBundle()). That has methods like findEntries, getEntry,
getResource, loadClass, etc. I think that is what you are asking for.

regards,

Karl

> but i find that with BundleEvent, there is no way to access Activator, not
> to mention the jar file.
> even i tried to extend Felix, most of the implementation's modifier is
> package accessable. which makes it invisible to its sub class!
> i know the encapsulation is important, but there should be some inferfaces
> exposed, or the emdeded work would not be easily.
>
> or did i miss something? is there any other way?
> --
> View this message in context: http://www.nabble.com/is-there-any-way-to-access-the-low-level-implementation--tp26020253p26020253.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>



--
Karl Pauls
karlpauls@...

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