public class ServiceItem extends Object implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
Entry[] |
attributeSets
Attribute sets.
|
Object |
service
A service object.
|
ServiceID |
serviceID
A service ID, or null if registering for the first time.
|
Constructor and Description |
---|
ServiceItem(AtomicSerial.GetArg arg)
AtomicSerial constructor. |
ServiceItem(ServiceID serviceID,
Object service,
Entry[] attrSets)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
ServiceItem |
clone()
Clone has been implemented to allow utilities such as
ServiceDiscoveryManager to avoid sharing
internally stored instances with client code. |
String |
toString()
Returns a
String representation of this
ServiceItem . |
public ServiceID serviceID
public Object service
public Entry[] attributeSets
public ServiceItem(AtomicSerial.GetArg arg) throws IOException
AtomicSerial
constructor. This object should be cloned
during de-serialization.arg
- IOException
public String toString()
String
representation of this
ServiceItem
.public ServiceItem clone()
ServiceDiscoveryManager
to avoid sharing
internally stored instances with client code.
A deep copy clone is madeCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.