Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>"Components" are less formally defined than services.</p> <p>A service is <em>any object</em> that is registered in the OSGi Service Registry and can be looked up using its interface name(s). The only prerequisite is that a service should implement some interface... any interface. For example I could register a runnable object under the <code>java.lang.Runnable</code> interface, and clients could look it up using that interface name.</p> <p>A "component" tends to be an object whose lifecycle is managed, usually by a component framework such as Declarative Services (DS), Blueprint or iPOJO. See <a href="http://wiki.osgi.org/wiki/Component_Models_Overview" rel="noreferrer">this page</a> on the OSGi Community Wiki for a discussion of the different component frameworks available.</p> <p>A component may have any of the following features, in combination or alone:</p> <ul> <li>A component may be <em>started</em> and <em>stopped</em>; this would be considered an "active" component, though that is also an informal term. A component that doesn't need to be started or stopped is called passive.</li> <li>A component may <em>publish</em> itself as an OSGi service.</li> <li>A component may <em>bind to</em> or <em>consume</em> OSGi services.</li> </ul> <p>In general, using a component framework is the easiest way to work with OSGi services because the framework will manage the binding to the services that you want to consume. For example you could say that your component "depends on" a particular service, in which case the component will only be created and activated when that service is available -- and also it will be destroyed when the service becomes unavailable.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload