java.util.ServiceLoader
mechanism or by manually setting their implementation using the setInstance method.
| Modifier and Type | Field and Description |
|---|---|
| private static volatile OASFactoryResolver |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract < describes the type parameter T extends Constructible> T | Returns: a new instance of the requested model classrepresents a model which extends the org.eclipse.microprofile.openapi.models.Constructible interface clazz)Create a new instance of a constructible element from the OpenAPI model tree. |
| public static OASFactoryResolver | |
| private static OASFactoryResolver | |
| public static void |
| instance | back to summary |
|---|---|
| private static volatile OASFactoryResolver instance | |
| OASFactoryResolver | back to summary |
|---|---|
| public OASFactoryResolver() | |
| createObject | back to summary |
|---|---|
| public abstract <T extends Constructible> T createObject(Class<T> clazz) Create a new instance of a constructible element from the OpenAPI model tree.
| |
| instance | back to summary |
|---|---|
| public static OASFactoryResolver instance() Creates an OASFactoryResolver object. Only used internally from within
| |
| loadSpi | back to summary |
|---|---|
| private static OASFactoryResolver loadSpi(ClassLoader cl) | |
| setInstance | back to summary |
|---|---|
| public static void setInstance(OASFactoryResolver factory) Set the instance. It is used by OSGi environment while service loader pattern is not supported.
| |