Package org.osgi.service.wireadmin
Class BasicEnvelope
java.lang.Object
org.osgi.service.wireadmin.BasicEnvelope
- All Implemented Interfaces:
Envelope
BasicEnvelope
is an implementation of the Envelope
interface- "Immutable"
-
Constructor Summary
ConstructorDescriptionBasicEnvelope
(Object value, Object identification, String scope) Constructor. -
Method Summary
-
Constructor Details
-
BasicEnvelope
Constructor.- Parameters:
value
- Content of this envelope, may benull
.identification
- Identifying object for thisEnvelope
object, must not benull
scope
- Scope name for this object, must not benull
- See Also:
-
-
Method Details
-
getValue
Description copied from interface:Envelope
Return the value associated with thisEnvelope
object. -
getIdentification
Description copied from interface:Envelope
Return the identification of thisEnvelope
object. An identification may be of any Java type. The type must be mutually agreed between the Consumer and Producer services.- Specified by:
getIdentification
in interfaceEnvelope
- Returns:
- an object which identifies the status item in the address space of the composite producer, must not be null.
- See Also:
-
getScope
Description copied from interface:Envelope
Return the scope name of thisEnvelope
object. Scope names are used to restrict the communication between the Producer and Consumer services. OnlyEnvelopes
objects with a scope name that is permitted for the Producer and the Consumer services must be passed through aWire
object.
-