Package org.osgi.service.wireadmin
Class BasicEnvelope
- java.lang.Object
-
- org.osgi.service.wireadmin.BasicEnvelope
-
-
Constructor Summary
Constructors Constructor Description BasicEnvelope(java.lang.Object value, java.lang.Object identification, java.lang.String scope)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getIdentification()
Return the identification of thisEnvelope
object.java.lang.String
getScope()
Return the scope name of thisEnvelope
object.java.lang.Object
getValue()
Return the value associated with thisEnvelope
object.
-
-
-
Constructor Detail
-
BasicEnvelope
public BasicEnvelope(java.lang.Object value, java.lang.Object identification, java.lang.String scope)
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:
Envelope
-
-
Method Detail
-
getValue
public java.lang.Object getValue()
Description copied from interface:Envelope
Return the value associated with thisEnvelope
object.- Specified by:
getValue
in interfaceEnvelope
- Returns:
- the value of the status item, or
null
when no item is associated with this object. - See Also:
Envelope.getValue()
-
getIdentification
public java.lang.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:
Envelope.getIdentification()
-
getScope
public java.lang.String 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.- Specified by:
getScope
in interfaceEnvelope
- Returns:
- the security scope for the status item, must not be null.
- See Also:
Envelope.getScope()
-
-