Creator.Descriptor| Constructor and Description |
|---|
CreatorFromDescriptor(Persistable.Descriptor descriptor) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCategory()
Returns the category this factory belongs to.
|
String |
getDescription()
The description of this factory.
|
Persistable.Descriptor |
getDescriptor() |
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 of a
Persistable. |
Persistable |
make(String... parametersAsStrings)
Creates an instance of a
Persistable. |
public CreatorFromDescriptor(Persistable.Descriptor descriptor)
public Persistable.Descriptor getDescriptor()
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 Exception
CreatorPersistable.
Implementations must ensure that the created instance has correct creator properties set on its descriptor.public Persistable make(String... parametersAsStrings) throws Exception
CreatorPersistable.
Implementations must ensure that the created instance has correct factory properties set on its descriptor.Copyright © 2023 LSST. All rights reserved.