Constructor and Description |
---|
BasicEnvelope(java.lang.Object value,
java.lang.Object identification,
java.lang.String scope)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getIdentification()
Return the identification of this
Envelope object. |
java.lang.String |
getScope()
Return the scope name of this
Envelope object. |
java.lang.Object |
getValue()
Return the value associated with this
Envelope object. |
public BasicEnvelope(java.lang.Object value, java.lang.Object identification, java.lang.String scope)
value
- Content of this envelope, may be null
.identification
- Identifying object for this Envelope
object, must not be null
scope
- Scope name for this object, must not be null
Envelope
public java.lang.Object getValue()
Envelope
Envelope
object.getValue
in interface Envelope
null
when no item is
associated with this object.Envelope.getValue()
public java.lang.Object getIdentification()
Envelope
Envelope
object.
An identification may be of any Java type. The type must be mutually
agreed between the Consumer and Producer services.getIdentification
in interface Envelope
Envelope.getIdentification()
public java.lang.String getScope()
Envelope
Envelope
object.
Scope names are used to restrict the communication between the Producer
and Consumer services. Only Envelopes
objects with a scope name
that is permitted for the Producer and the Consumer services must be
passed through a Wire
object.getScope
in interface Envelope
Envelope.getScope()
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0