|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectBaseBundleActivator
org.eclipse.soda.dk.profile.bundle.ProfileBundle
public abstract class ProfileBundle
The ProfileBundle is the base bundle activator for all profile bundle activators.
| Field Summary | |
|---|---|
static java.lang.String[] |
OPTIONAL_SERVICES
Define the optional services (String[]) constant. |
| Constructor Summary | |
|---|---|
ProfileBundle()
|
|
| Method Summary | |
|---|---|
void |
activate()
Create service and return the Object result. |
java.util.Hashtable |
createProperties()
Create the properties. |
abstract ProfileService |
createService(DeviceService device)
Create service with the specified device parameter and return the Object result. |
protected void |
deactivate()
Deactivate. |
DeviceService |
getDevice()
Get the DeviceService to be used by the profile. |
abstract java.lang.String[] |
getExportedServiceNames()
Gets the exported service names (String[]) value. |
java.lang.String |
getInterestServiceName()
|
protected java.lang.String[] |
getOptionalImportedServiceNames()
Gets the optional imported service names (String[]) value. |
ProfileService |
getProfile()
Return the profile. |
protected void |
handleAcquiredOptionalImportedService(java.lang.String serviceName,
java.lang.Object service)
Handle acquired optional imported service with the specified service name and service parameters. |
protected void |
handleReleasedOptionalImportedService(java.lang.String serviceName,
java.lang.Object service)
Handle released optional imported service with the specified service name and service parameters. |
void |
log(int severity,
java.lang.String message)
Log with the specified severity and message parameters. |
void |
log(int severity,
java.lang.String message,
java.lang.Throwable exception)
Log with the specified severity, message and exception parameters. |
void |
setDevice(DeviceService device)
Sets the device value. |
void |
setProfile(ProfileService profile)
Sets the profile value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.osgi.framework.BundleActivator |
|---|
start, stop |
| Field Detail |
|---|
public static final java.lang.String[] OPTIONAL_SERVICES
| Constructor Detail |
|---|
public ProfileBundle()
| Method Detail |
|---|
public void activate()
public java.util.Hashtable createProperties()
Hashtable)
value.public abstract ProfileService createService(DeviceService device)
DeviceService) parameter.
device - The device (DeviceService) parameter.
Object) value.
The device (DeviceService) parameter.handleAcquiredOptionalImportedService(String,Object),
handleReleasedOptionalImportedService(String,Object)protected void deactivate()
public DeviceService getDevice()
DeviceService) value.setDevice(DeviceService)public abstract java.lang.String[] getExportedServiceNames()
String[]) value.public java.lang.String getInterestServiceName()
String)
value.ServiceInterestBundle.getInterestServiceName()protected java.lang.String[] getOptionalImportedServiceNames()
String[])
value.public ProfileService getProfile()
ProfileService)
value.setProfile(ProfileService)
protected void handleAcquiredOptionalImportedService(java.lang.String serviceName,
java.lang.Object service)
String) parameter.
The service (Object) parameter.
serviceName - The service name (String) parameter.service - The service (Object) parameter.
protected void handleReleasedOptionalImportedService(java.lang.String serviceName,
java.lang.Object service)
String) parameter.
The service (Object) parameter.
serviceName - The service name (String) parameter.service - The service (Object) parameter.
public void log(int severity,
java.lang.String message)
int)
parameter. The message (String) parameter.
The severity (int) parameter.
The message (String) parameter.
severity - The severity (int) parameter.message - The message (String) parameter.log(int,String,Throwable)
public void log(int severity,
java.lang.String message,
java.lang.Throwable exception)
int) parameter. The message (String)
parameter. The exception (Throwable) parameter.
The severity (int) parameter.
The message (String) parameter.
The exception (Throwable) parameter.
severity - The severity (int) parameter.message - The message (String) parameter.exception - The exception (Throwable) parameter.log(int,String)public void setDevice(DeviceService device)
DeviceService) parameter.
device - The device (DeviceService) parameter.getDevice()public void setProfile(ProfileService profile)
ProfileService) parameter.
profile - The profile (ProfileService) parameter.getProfile()
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||