Creator.Descriptor| Constructor and Description |
|---|
CreatorExecutable(Executable exec,
Object object)
Construct the factory.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCategory()
Returns the category this factory belongs to.
|
String |
getDescription()
The description of this factory.
|
String |
getName()
The name of this factory.
|
String[] |
getParameterDescriptions()
The list of the names of the parameters of this factory.
|
Parameter[] |
getParameters()
The list of parameters of this factory.
|
String |
getPath()
Returns the slash-separated path to this factory.
|
Persistable |
make(Object... parameters)
Creates an instance.
|
Persistable |
make(String... parametersAsStrings)
Creates an instance.
|
public CreatorExecutable(Executable exec, Object object)
exec - Executable to be invoked.object - Object the executable belongs to, if any. If the executable is a static
method or a constructor, this object is ignored and can be null.public String getCategory()
CreatorPersistable.getCategory in interface Creatorpublic String getPath()
CreatorPersistable.
The path must be unique among factories in the same category.public String getName()
Creatorpublic String getDescription()
CreatorgetDescription in interface Creatorpublic Parameter[] getParameters()
CreatorgetParameters in interface Creatorpublic String[] getParameterDescriptions()
CreatorgetParameterDescriptions in interface Creatorpublic Persistable make(Object... parameters) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, InstantiationException
make in interface Creatorparameters - Parameter values.IllegalAccessException - If the underlying executable is inaccessible due to Java access control.IllegalArgumentException - If the provided parameter values are incompatible with the underlying executable.InvocationTargetException - If the underlying executable throws an exception.InstantiationException - If if the initialization provoked by this method fails.public Persistable make(String... parametersAsStrings) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, InstantiationException
make in interface CreatorparametersAsStrings - Encoded parameter values.IllegalAccessException - If the underlying executable is inaccessible due to Java access control.IllegalArgumentException - If the provided parameter values are incompatible with the underlying executable.InvocationTargetException - If the underlying executable throws an exception.InstantiationException - If if the initialization provoked by this method fails.Copyright © 2023 LSST. All rights reserved.