public final class COMResource extends ResourceBase
COMResource class is used by a container to specify a
class type that can be exported from the COM runtime.
The toString format (which is produced by the ResourceBase
class) for a COM resource is:
type=<com>, application=, className=my.package.MyClass
id, length, NO_PARENT, parent, resStr, SCOPE_RESOURCE_ACTION, valuesLIST_FIELD_TYPE, NORMAL_FIELD_TYPE, PATH_FIELD_TYPE, UNDEFINED_FIELD_TYPE| Modifier and Type | Method and Description |
|---|---|
String |
getClassName()
Gets a fully-qualified classname of the Java class to be exported
to a COM client.
|
String[] |
getKeys()
Gets keys for the
COMResource. |
String |
getType()
Gets the type of this resource (
COMResource). |
protected Resource |
makeParent()
Gets a
Resource object that represents the parent of the
current COMResource. |
appendArrayValue, appendValue, equals, getFieldType, getID, getParentResource, getRepeatingFieldIndex, getRepeatingFieldTerminatingIndex, getValues, hashCode, init, init, isTransitiveField, toString, writeResourceStringpublic String getType()
COMResource).protected Resource makeParent()
Resource object that represents the parent of the
current COMResource. If the resource does not have a parent, the value of
null must be returned.
The parentage hierarchy for the COMResource (that is, the values returned from
successive calls to this method) is:
type=<com>, application=, className=my.package
type=<com>, application=, className=my
type=<com>
makeParent in class ResourceBaseResource object of the parent resource.public String[] getKeys()
COMResource.getKeys in interface ResourcegetKeys in class ResourceBaseCOMResource's keys.public String getClassName()