public abstract class InstantiableUserConfigurationType extends UserConfigurationType
UserConfigurationType.SerializationProxy
ConfigurationType.DeviceFlavor, ConfigurationType.DisplayNameFlavor
description, name
Modifier | Constructor and Description |
---|---|
protected |
InstantiableUserConfigurationType(java.lang.Class clazz,
ConfigurationType.DeviceFlavor flavor,
java.lang.String xmlTag,
ConstructorPrototype[] allowableConstructorPrototypes) |
protected |
InstantiableUserConfigurationType(ConfigurationType.DeviceFlavor flavor) |
Modifier and Type | Method and Description |
---|---|
boolean |
classMustBeInstantiable() |
protected java.lang.reflect.Constructor<HardwareDevice> |
findMatch(ConstructorPrototype prototype)
Finds a constructor of the underlying class that matches a given prototype
|
java.lang.Class<? extends HardwareDevice> |
getClazz() |
protected void |
handleConstructorExceptions(java.lang.Exception e)
In the catch block, please return null after calling this method.
|
boolean |
hasConstructors() |
void |
processAnnotation(DeviceProperties deviceProperties) |
finishedAnnotations, getDescription, getDeviceFlavor, getDisplayName, getName, getXmlTag, getXmlTagAliases, isBuiltIn, isCompatibleWith, isDeprecated, isDeviceFlavor, isOnBotJava, toUSBDeviceType
protected InstantiableUserConfigurationType(java.lang.Class clazz, ConfigurationType.DeviceFlavor flavor, java.lang.String xmlTag, ConstructorPrototype[] allowableConstructorPrototypes)
protected InstantiableUserConfigurationType(ConfigurationType.DeviceFlavor flavor)
public void processAnnotation(DeviceProperties deviceProperties)
processAnnotation
in class UserConfigurationType
protected final java.lang.reflect.Constructor<HardwareDevice> findMatch(ConstructorPrototype prototype)
public final boolean hasConstructors()
public final java.lang.Class<? extends HardwareDevice> getClazz()
public boolean classMustBeInstantiable()
protected final void handleConstructorExceptions(java.lang.Exception e)