public class ContainerTypeDescription extends Object
IContainer
type. Instances of this class are used to represent IContainerInstantiator
s
in the ContainerFactory
IContainerInstantiator
Modifier and Type | Field and Description |
---|---|
protected String |
description |
protected int |
hashCode |
protected boolean |
hidden |
protected IContainerInstantiator |
instantiator |
protected String |
instantiatorClass |
protected String |
name |
protected boolean |
server |
Constructor and Description |
---|
ContainerTypeDescription(String name,
IContainerInstantiator instantiator) |
ContainerTypeDescription(String name,
IContainerInstantiator instantiator,
String description) |
ContainerTypeDescription(String name,
IContainerInstantiator inst,
String desc,
boolean server,
boolean hidden) |
ContainerTypeDescription(String name,
String instantiatorClass,
String description) |
ContainerTypeDescription(String name,
String instantiatorClass,
String description,
boolean server,
boolean hidden) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getDescription()
Get the String description associated with this ContainerTypeDescription
instance
|
String[] |
getImportedConfigs(String[] exporterSupportedConfigs) |
protected IContainerInstantiator |
getInstantiator() |
String |
getName()
Get ContainerTypeDescription name
|
Dictionary |
getPropertiesForImportedConfigs(String[] importedConfigs,
Dictionary exportedProperties) |
String[] |
getSupportedAdapterTypes()
Get array of supported adapters for this container type description.
|
String[] |
getSupportedConfigs() |
String[] |
getSupportedIntents() |
Class[][] |
getSupportedParameterTypes()
Get array of parameter types for this ContainerTypeDescription.
|
int |
hashCode() |
boolean |
isHidden() |
boolean |
isServer() |
String |
toString() |
protected void |
traceAndLogException(int code,
String method,
Throwable e) |
protected String name
protected String instantiatorClass
protected IContainerInstantiator instantiator
protected String description
protected int hashCode
protected boolean server
protected boolean hidden
public ContainerTypeDescription(String name, String instantiatorClass, String description)
public ContainerTypeDescription(String name, String instantiatorClass, String description, boolean server, boolean hidden)
public ContainerTypeDescription(String name, IContainerInstantiator instantiator)
name
- nameinstantiator
- instantiatorpublic ContainerTypeDescription(String name, IContainerInstantiator instantiator, String description)
public ContainerTypeDescription(String name, IContainerInstantiator inst, String desc, boolean server, boolean hidden)
public String getName()
protected IContainerInstantiator getInstantiator() throws ClassNotFoundException, InstantiationException, IllegalAccessException
public String getDescription()
public boolean isServer()
public boolean isHidden()
public String[] getSupportedAdapterTypes()
IContainer.getAdapter(Class)
with the same type name as a
returned value will return a non-null
result. In other words, even if the
class name is in the returned array, subsequent calls to
IContainer.getAdapter(Class)
may still return null
.public Class[][] getSupportedParameterTypes()
IContainerInstantiator.createInstance(ContainerTypeDescription, Object[])
.
For example, if this method returns a Class [] = {{ String.class,
String.class }, { String.class }} this indicates that a call to
createInstance(description,new String[] { "hello", "there" }) and a call
to createInstance(description,new String[] { "hello" }) will be
understood by the underlying provider implementation.IContainerInstantiator.createInstance(ContainerTypeDescription, Object[])
.
If no parameter types are understood as arguments, a Class[0][0]
array will be returnedpublic String[] getSupportedIntents()
public String[] getSupportedConfigs()
public String[] getImportedConfigs(String[] exporterSupportedConfigs)
exporterSupportedConfigs
- exporter supported configspublic Dictionary getPropertiesForImportedConfigs(String[] importedConfigs, Dictionary exportedProperties)
importedConfigs
- imported configsexportedProperties
- exported propertiesCopyright © 2004–2020 Eclipse Foundation. All rights reserved.