You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Jagan Pappula <p....@gmail.com> on 2009/07/09 11:49:25 UTC

Exported Packages in System Bundle

Hi all,

Is there any way to configure exported packages from system budle, or system
bundle simply exports the packages based on the underlying java version

Thanks
--Jagan.

Re: Exported Packages in System Bundle

Posted by Jagan Pappula <p....@gmail.com>.
Thanks a lot for the info.

--Jagan.

On Thu, Jul 9, 2009 at 3:24 PM, Filippo Diotalevi <
filippo.diotalevi@gmail.com> wrote:

>  On Thu, Jul 9, 2009 at 11:49 AM, Jagan Pappula<p....@gmail.com> wrote:
> > Hi all,
> >
> > Is there any way to configure exported packages from system budle, or
> system
> > bundle simply exports the packages based on the underlying java version
>
> Hi,
>  please check
>
> http://felix.apache.org/site/apache-felix-framework-usage-documentation.html
>
> In particular, you're interested in setting two properties in the
> config.property file:
> * org.osgi.framework.system.packages - Specifies a comma-delimited
> list of packages that should be exported via the System Bundle from
> the parent class loader. The framework will set this to a reasonable
> default. If the value is specified, it replaces any default value.
> * org.osgi.framework.system.packages.extra - Specifies a
> comma-delimited list of packages that should be exported via the
> System Bundle from the parent class loader in addition to the packages
> in org.osgi.framework.system.packages. The default value is empty. If
> a value is specified, it is appended to the list of default or
> specified packages in org.osgi.framework.system.packages.
>
>
> --
> Filippo Diotalevi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Re: Exported Packages in System Bundle

Posted by Filippo Diotalevi <fi...@gmail.com>.
On Thu, Jul 9, 2009 at 11:49 AM, Jagan Pappula<p....@gmail.com> wrote:
> Hi all,
>
> Is there any way to configure exported packages from system budle, or system
> bundle simply exports the packages based on the underlying java version

Hi,
  please check
http://felix.apache.org/site/apache-felix-framework-usage-documentation.html

In particular, you're interested in setting two properties in the
config.property file:
* org.osgi.framework.system.packages - Specifies a comma-delimited
list of packages that should be exported via the System Bundle from
the parent class loader. The framework will set this to a reasonable
default. If the value is specified, it replaces any default value.
* org.osgi.framework.system.packages.extra - Specifies a
comma-delimited list of packages that should be exported via the
System Bundle from the parent class loader in addition to the packages
in org.osgi.framework.system.packages. The default value is empty. If
a value is specified, it is appended to the list of default or
specified packages in org.osgi.framework.system.packages.


-- 
Filippo Diotalevi

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


Re: Exported Packages in System Bundle

Posted by Sahoo <Sa...@Sun.COM>.
You have a couple of options:
1a. You can use org.osgi.framework.system.packages system property to 
configure the exported package list.
1b. You can use org.osgi.framework.system.packages.extra system property 
to add more packages to what is already configured by an underlying 
framework.
See felix/conf/config.properties.

2. You can write new extension bundles to export more packages if you 
can't do it via the above two options.


Sahoo

Jagan Pappula wrote:
> Hi all,
>
> Is there any way to configure exported packages from system budle, or system
> bundle simply exports the packages based on the underlying java version
>
> Thanks
> --Jagan.
>
>   

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


Re: Exported Packages in System Bundle

Posted by Felix Meschberger <fm...@gmail.com>.
Hi Jagan

Jagan Pappula schrieb:
> Hi all,
> 
> Is there any way to configure exported packages from system budle, or system
> bundle simply exports the packages based on the underlying java version

The system bundle exports the packages listed in the
"org.osgi.framework.system.packages" framework property. See 3.8.5,
Parent Class Loader of the core specification for more details.

This export list may be enhanced by installing extension bundles. See
Section 3.15 of the core specification for full details.

Regards
Felix


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