public class DashletSelector extends Object implements org.osgi.framework.BundleActivator
DashletFactory
instances of the OSGI container.Modifier and Type | Class and Description |
---|---|
static interface |
DashletSelector.ServiceListChangedListener
Definition of the
DashletSelector.ServiceListChangedListener interface. |
Constructor and Description |
---|
DashletSelector() |
Modifier and Type | Method and Description |
---|---|
void |
addServiceListChangedListener(DashletSelector.ServiceListChangedListener serviceListChangedListener)
Method for adding a
DashletSelector.ServiceListChangedListener . |
void |
bind(DashletFactory dashletFactory)
This method adds a
DashletFactory to the list of available dashlet factories. |
DashletFactory |
getDashletFactoryForName(String name)
Returns the
DashletFactory instance for a given nane. |
List<DashletFactory> |
getDashletFactoryList()
Returns the list of
DashletFactory instances known by this class. |
void |
removeServiceListChangedListener(DashletSelector.ServiceListChangedListener serviceListChangedListener)
Method for removing a
DashletSelector.ServiceListChangedListener . |
void |
start(org.osgi.framework.BundleContext context)
Start method of this registry.
|
void |
stop(org.osgi.framework.BundleContext context)
Stop method of this registry.
|
void |
unbind(DashletFactory dashletFactory)
This method removes a
DashletFactory from the list of available dashlet factories. |
public void start(org.osgi.framework.BundleContext context) throws Exception
start
in interface org.osgi.framework.BundleActivator
context
- the BundleContext
Exception
public void stop(org.osgi.framework.BundleContext context) throws Exception
stop
in interface org.osgi.framework.BundleActivator
context
- the BundleContext
Exception
public void bind(DashletFactory dashletFactory)
DashletFactory
to the list of available dashlet factories.dashletFactory
- the new DashletFactory
public void unbind(DashletFactory dashletFactory)
DashletFactory
from the list of available dashlet factories.dashletFactory
- the DashletFactory
to be removedpublic void addServiceListChangedListener(DashletSelector.ServiceListChangedListener serviceListChangedListener)
DashletSelector.ServiceListChangedListener
.serviceListChangedListener
- the DashletSelector.ServiceListChangedListener
to addpublic void removeServiceListChangedListener(DashletSelector.ServiceListChangedListener serviceListChangedListener)
DashletSelector.ServiceListChangedListener
.serviceListChangedListener
- the DashletSelector.ServiceListChangedListener
to be removedpublic List<DashletFactory> getDashletFactoryList()
DashletFactory
instances known by this class.List
of DashletFactory
instancespublic DashletFactory getDashletFactoryForName(String name)
DashletFactory
instance for a given nane.name
- the naem fo the DashletFactory
DashletFactory
Copyright © 2021. All rights reserved.