public abstract class AbstractDeclaration extends AbstractService implements Declaration, DeclarationHandle, Status
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DECLARATION_BOUND_MESSAGE
The message used when a declaration is bound.
|
m_bundleContext| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDeclaration(org.osgi.framework.BundleContext bundleContext,
java.lang.Class<?> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind()
Binds the declaration.
|
java.lang.String |
getMessage()
Gets the unbound message if any.
|
Status |
getStatus()
Gets the status of the declaration.
|
java.lang.Throwable |
getThrowable()
Gets the unbound error if any.
|
boolean |
isBound()
Is the declaration fulfilled ?
|
void |
publish()
Publish the
Declaration. |
void |
retract()
Retract the
Declaration service. |
void |
unbind(java.lang.String message)
Unbinds the declaration.
|
void |
unbind(java.lang.String message,
java.lang.Throwable throwable)
Unbinds the declaration.
|
getBundleContext, getRegistration, getServiceProperties, isRegistered, registerService, start, stoppublic static final java.lang.String DECLARATION_BOUND_MESSAGE
protected AbstractDeclaration(org.osgi.framework.BundleContext bundleContext,
java.lang.Class<?> type)
public boolean isBound()
Statuspublic java.lang.String getMessage()
StatusgetMessage in interface Statuspublic java.lang.Throwable getThrowable()
StatusgetThrowable in interface Statuspublic Status getStatus()
getStatus in interface DeclarationgetStatus in interface DeclarationHandlepublic void bind()
bind in interface Declarationpublic void unbind(java.lang.String message)
unbind in interface Declarationmessage - an explanationunbind(String, Throwable)public void unbind(java.lang.String message,
java.lang.Throwable throwable)
unbind in interface Declarationmessage - an explanationthrowable - an errorpublic void publish()
DeclarationHandleDeclaration. If the declaration
is already registered, it's a no-op operation.publish in interface DeclarationHandlepublic void retract()
DeclarationHandleDeclaration service. If the
declaration is not registered, it's a no-op operation.retract in interface DeclarationHandleCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.