public abstract class ComponentDescriptor extends Object implements VendorExtensions, Serializable
ComponentDescriptor
class is the common base class for all
component descriptors. All deployable components installed in the SLEE have
a descriptor containing deployment-related information, specified as a derivitive
class of ComponentDescriptor
.Modifier | Constructor and Description |
---|---|
protected |
ComponentDescriptor(ComponentID component,
DeployableUnitID deployableUnit,
String source,
LibraryID[] libraries)
Create a new component descriptor.
|
Modifier and Type | Method and Description |
---|---|
static void |
disableVendorDataDeserialization()
Disable the deserialization of vendor-specific data for objects of this class
and its subclasses.
|
static void |
disableVendorDataSerialization()
Disable the serialization of vendor-specific data for objects of this class
and its subclasses.
|
static void |
enableVendorDataDeserialization()
Enable the deserialization of vendor-specific data for objects of this class
and its subclasses.
|
static void |
enableVendorDataSerialization()
Enable the serialization of vendor-specific data for objects of this class
and its subclasses.
|
boolean |
equals(Object obj)
Compare this component descriptor for equality with another object.
|
DeployableUnitID |
getDeployableUnit()
Get the identifier of the deployable unit from which this component was installed.
|
ComponentID |
getID()
Get the component identifier for this descriptor.
|
LibraryID[] |
getLibraries()
Get the component identifiers of libraries used by this component.
|
String |
getName()
Get the name of the component.
|
String |
getSource()
Get the name of the source object from which this component was installed.
|
String |
getVendor()
Get the vendor of the component.
|
Object |
getVendorData()
Get the vendor-specific data.
|
String |
getVersion()
Get the version of the component.
|
int |
hashCode()
Get a hash code value for this component descriptor.
|
void |
setVendorData(Object vendorData)
Set the vendor-specific data.
|
protected void |
toString(StringBuffer buf) |
protected ComponentDescriptor(ComponentID component, DeployableUnitID deployableUnit, String source, LibraryID[] libraries)
component
- the identifier of the component.deployableUnit
- the identifier of the deployable unit from which the
component was installed.source
- the source object (component jar or service XML file) within the
deployable unit from which this component was installed.libraries
- the identifiers of the libraries that the component depends on.NullPointerException
- if any argument is null
.public final DeployableUnitID getDeployableUnit()
public final String getSource()
public final ComponentID getID()
public final String getName()
public final String getVendor()
public final String getVersion()
public final LibraryID[] getLibraries()
public static void enableVendorDataSerialization()
By default, any vendor-specific data included in an object of this class will not be included in the serialization stream when the object is serialized. Invoking this method changes this behavior so that vendor-specific data is included in the serialization stream when an object of this class is serialized.
This method should only be invoked if the vendor-specific data is serializable via standard Java serialization means.
disableVendorDataSerialization()
,
setVendorData(java.lang.Object)
public static void disableVendorDataSerialization()
If the serialization of vendor-specific data for objects of this class has
been enabled via the enableVendorDataSerialization()
method, this
method disables that behavior again.
public static void enableVendorDataDeserialization()
By default, any vendor-specific data included in the serialization stream of objects of this class is discarded upon deserialization. Invoking this method changes that behavior so that the vendor-specific data is also deserialized when an object of this class is deserialized. A management client that enables the deserialization of vendor-specific data must ensure that any necessary classes required to deserialize that data is available in the relevant classloader.
disableVendorDataDeserialization()
,
getVendorData()
public static void disableVendorDataDeserialization()
If the deserialization of vendor-specific data for objects of this class has
been enabled via the enableVendorDataDeserialization()
method, this
method disables that behavior again.
public void setVendorData(Object vendorData)
setVendorData
in interface VendorExtensions
vendorData
- the vendor-specific data.public Object getVendorData()
getVendorData
in interface VendorExtensions
public final boolean equals(Object obj)
equals
in class Object
obj
- the object to compare this with.true
if obj
is a component descriptor
that has the same component identifier as this, false
otherwise.Object.equals(Object)
public final int hashCode()
hashCode
in class Object
Object.hashCode()
protected final void toString(StringBuffer buf)