public class DefaultInstanceDeclaration extends AbstractDeclaration implements InstanceDeclaration
DECLARATION_BOUND_MESSAGE
m_bundleContext
COMPONENT_NAME_PROPERTY, COMPONENT_VERSION_PROPERTY, INSTANCE_NAME, UNNAMED_INSTANCE
Constructor and Description |
---|
DefaultInstanceDeclaration(org.osgi.framework.BundleContext bundleContext,
java.lang.String componentName) |
DefaultInstanceDeclaration(org.osgi.framework.BundleContext bundleContext,
java.lang.String componentName,
java.util.Dictionary<java.lang.String,java.lang.Object> configuration) |
Modifier and Type | Method and Description |
---|---|
org.osgi.framework.Bundle |
getBundle()
Gets the bundle that is declaring this instance.
|
java.lang.String |
getComponentName() |
java.lang.String |
getComponentVersion() |
java.util.Dictionary<java.lang.String,java.lang.Object> |
getConfiguration()
The instance configuration.
|
java.lang.String |
getInstanceName()
Gets the instance name.
|
protected java.util.Dictionary<java.lang.String,?> |
getServiceProperties() |
bind, getMessage, getStatus, getThrowable, isBound, publish, retract, unbind, unbind
getBundleContext, getRegistration, isRegistered, registerService, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bind, getStatus, unbind, unbind
public DefaultInstanceDeclaration(org.osgi.framework.BundleContext bundleContext, java.lang.String componentName)
public DefaultInstanceDeclaration(org.osgi.framework.BundleContext bundleContext, java.lang.String componentName, java.util.Dictionary<java.lang.String,java.lang.Object> configuration)
public java.util.Dictionary<java.lang.String,java.lang.Object> getConfiguration()
InstanceDeclaration
getConfiguration
in interface InstanceDeclaration
public java.lang.String getComponentName()
getComponentName
in interface InstanceDeclaration
public java.lang.String getComponentVersion()
getComponentVersion
in interface InstanceDeclaration
public java.lang.String getInstanceName()
InstanceDeclaration
getInstanceName
in interface InstanceDeclaration
public org.osgi.framework.Bundle getBundle()
getBundle
in interface InstanceDeclaration
protected java.util.Dictionary<java.lang.String,?> getServiceProperties()
getServiceProperties
in class AbstractService
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.