T
- The type of the extensionpublic abstract class ExtensionInfo<T extends IExtension>
extends java.lang.Object
Constructor and Description |
---|
ExtensionInfo(ExtensionType type)
The constructor
|
ExtensionInfo(java.lang.String id,
ExtensionType type,
ParameterType[] parameterInfos)
The constructor
|
Modifier and Type | Method and Description |
---|---|
protected abstract T |
createExtension(Controller controller)
Used to create the extension
|
T |
getAnyExtension(Controller controller,
MediaDirConfig config)
Used to get any extension from the media directory configuration.
|
T |
getExtension(Controller controller,
MediaDirConfig config,
int number)
Used to get the extension class type
|
java.lang.String |
getId()
Used to get the id of the extension
|
ParameterType[] |
getParameterInfos()
Used to get information on the parameters
|
ExtensionType |
getType()
Used to get the type of the extension
|
protected void |
setId(java.lang.String id)
Used to set the id of the extension
|
protected void |
setParameterInfos(ParameterType[] parameterInfos)
Used to set the parameter information
|
public ExtensionInfo(ExtensionType type)
type
- The type of the extensionpublic ExtensionInfo(java.lang.String id, ExtensionType type, ParameterType[] parameterInfos)
id
- The id of the extensionparameterInfos
- The parameter infotype
- The type of the extensionpublic T getExtension(Controller controller, MediaDirConfig config, int number) throws ExtensionException
config
- The media directory configurationnumber
- The index number of the extensioncontroller
- The controllerExtensionException
- Thrown if their is a problem creating the extensionprotected abstract T createExtension(Controller controller) throws ExtensionException
ExtensionException
- Thrown if their is a problempublic T getAnyExtension(Controller controller, MediaDirConfig config) throws ExtensionException
config
- The media directory configurationcontroller
- The controllerExtensionException
- Thrown if their is a problem getting the extensionpublic ParameterType[] getParameterInfos()
protected void setParameterInfos(ParameterType[] parameterInfos)
parameterInfos
- The parameter informationpublic java.lang.String getId()
protected void setId(java.lang.String id)
id
- The id of the extensionpublic ExtensionType getType()