org.osgi.framework

Home
Java Source Code / Java Documentation 2
1.2D
2.3D
3.Ajax
4.Algebra
5.App Engine
6.Aspect
7.Assemble
8.Cache
9.Cassandra
10.Chat
11.Cloud
12.CMS
13.CouchDB
14.Crypt
15.Database
16.Distributed
17.Eclipse
18.Facebook
19.File
20.Forum
21.GAE
22.Game
23.Google tech
24.Graph
25.Graphic
26.GWT
27.Hibernate
28.HTML
29.HTTP
30.Image
31.IntelliJ
32.IRC
33.J2EE
34.J2ME
35.JDBC
36.JPA
37.JSON
38.JSR
39.JUnit
40.JVM
41.Language
42.Linux
43.Math
44.Maven
45.Media
46.Messenger
47.MiddleWare
48.Mobile
49.Mock
50.MongoDB
51.Mp3
52.Music
53.MVC
54.Network
55.OpenID
56.OSGi
57.Parse
58.Persist
59.Petri
60.Phone
61.Physics
62.REST
63.Robot
64.RPC
65.RSS
66.Ruby
67.Script
68.Search
69.Spring
70.SQL
71.SSH
72.Sudoku
73.Swing
74.Tapestry
75.Test
76.Text
77.Torrent
78.Twitter
79.UML
80.UnTagged
81.Utilities
82.Web
83.Wiki
84.XML
Java Source Code / Java Documentation 2 » Script » java2script » org.osgi.framework 
org.osgi.framework
Java Source File NameTypeComment
AdminPermission.javaClass Indicates the caller's authority to perform specific privileged administrative operations on or to get sensitive information about a bundle. The actions for this permission are:
 Action               Methods
 class                Bundle.loadClass
 execute              Bundle.start
 Bundle.stop
 StartLevel.setBundleStartLevel
 extensionLifecycle   BundleContext.installBundle for extension bundles
 Bundle.update for extension bundles
 Bundle.uninstall for extension bundles
 lifecycle            BundleContext.installBundle
 Bundle.update
 Bundle.uninstall
 listener             BundleContext.addBundleListener for SynchronousBundleListener
 BundleContext.removeBundleListener for SynchronousBundleListener
 metadata             Bundle.getHeaders
 Bundle.getLocation
 resolve              PackageAdmin.refreshPackages
 PackageAdmin.resolveBundles
 resource             Bundle.getResource
 Bundle.getResources
 Bundle.getEntry
 Bundle.getEntryPaths
 Bundle.findEntries
 Bundle resource/entry URL creation
 startlevel           StartLevel.setStartLevel
 StartLevel.setInitialBundleStartLevel 
 

The special action "*" will represent all actions.

The name of this permission is a filter expression.

AllServiceListener.javaInterface A ServiceEvent listener.

AllServiceListener is a listener interface that may be implemented by a bundle developer.

An AllServiceListener object is registered with the Framework using the BundleContext.addServiceListener method. AllServiceListener objects are called with a ServiceEvent object when a service is registered, modified, or is in the process of unregistering.

ServiceEvent object delivery to AllServiceListener objects is filtered by the filter specified when the listener was registered.

Bundle.javaInterface An installed bundle in the Framework.

A Bundle object is the access point to define the lifecycle of an installed bundle.

BundleActivator.javaInterface Customizes the starting and stopping of a bundle.

BundleActivator is an interface that may be implemented when a bundle is started or stopped.

BundleContext.javaInterface A bundle's execution context within the Framework.
BundleEvent.javaClass An event from the Framework describing a bundle lifecycle change.

BundleEvent objects are delivered to BundleListener objects when a change occurs in a bundle's lifecycle.

BundleException.javaClass A Framework exception used to indicate that a bundle lifecycle problem occurred.
BundleListener.javaInterface A BundleEvent listener.
BundlePermission.javaClass A bundle's authority to require or provide a bundle or to receive or attach fragments.
Configurable.javaInterface Supports a configuration object.

Configurable is an interface that should be used by a bundle developer in support of a configurable service.

Constants.javaInterface Defines standard names for the OSGi environment property, service property, and Manifest header attribute keys.
Filter.javaInterface An RFC 1960-based Filter.
FrameworkEvent.javaClass A general event from the Framework.

FrameworkEvent is the event class used when notifying listeners of general events occuring within the OSGI environment.

FrameworkListener.javaInterface A FrameworkEvent listener.
FrameworkUtil.javaClass Framework Utility class.
InvalidSyntaxException.javaClass A Framework exception.
PackagePermission.javaClass A bundle's authority to import or export a package.

A package is a dot-separated string that defines a fully qualified Java package.

For example:

 
 org.osgi.service.http
 
 

PackagePermission has two actions: EXPORT and IMPORT.

ServiceEvent.javaClass An event from the Framework describing a service lifecycle change.

ServiceEvent objects are delivered to a ServiceListener objects when a change occurs in this service's lifecycle.

ServiceFactory.javaInterface Allows services to provide customized service objects in the OSGi environment.

When registering a service, a ServiceFactory object can be used instead of a service object, so that the bundle developer can gain control of the specific service object granted to a bundle that is using the service.

When this happens, the BundleContext.getService(ServiceReference) method calls the ServiceFactory.getService method to create a service object specifically for the requesting bundle.

ServiceListener.javaInterface A ServiceEvent listener.
ServicePermission.javaClass Indicates a bundle's authority to register or get a service.
  • The ServicePermission.REGISTER action allows a bundle to register a service on the specified names.
  • The ServicePermission.GET action allows a bundle to detect a service and get it.
Permission to get a service is required in order to detect events regarding the service.
ServiceReference.javaInterface A reference to a service.
ServiceRegistration.javaInterface A registered service.
SynchronousBundleListener.javaInterface A synchronous BundleEvent listener.
Version.javaClass Version identifier for bundles and packages.

Version identifiers have four components.

  1. Major version.
w__w_w___.__j___av__a_2_s_.c___o__m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.