Package de.bmiag.tapir.bootstrap
Class TapirFactoriesBootstrapStrategy
- java.lang.Object
-
- de.bmiag.tapir.bootstrap.TapirFactoriesBootstrapStrategy
-
- All Implemented Interfaces:
TapirBootstrapStrategy
public class TapirFactoriesBootstrapStrategy extends java.lang.Object implements TapirBootstrapStrategy
TheTapirFactoriesBootstrapStrategy
searches for files called "META-INF/tapir.bootstrap" in the classpath. There might be multiple files whose precedences can be controlled by using theOrder
annotation.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BOOTSTRAP_RESOURCE_LOCATION
The location to look for factories.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
getBootstrapConfiguration()
Returns the annotation processor's class name for the given processorKey.java.util.List<java.lang.Object>
getSources()
Returns the sources which are passed toSpringApplication.run(Object[], String[])
.static TapirFactoriesBootstrapStrategy
instance()
-
-
-
Field Detail
-
BOOTSTRAP_RESOURCE_LOCATION
public static final java.lang.String BOOTSTRAP_RESOURCE_LOCATION
The location to look for factories.Can be present in multiple JAR files.
- Since:
- 2.0.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
instance
public static TapirFactoriesBootstrapStrategy instance()
- Returns:
- the TapirFactoriesBootstrapStrategy singleton
- Since:
- 2.0.0
-
getSources
public java.util.List<java.lang.Object> getSources()
Description copied from interface:TapirBootstrapStrategy
Returns the sources which are passed toSpringApplication.run(Object[], String[])
.- Specified by:
getSources
in interfaceTapirBootstrapStrategy
- Returns:
- Spring application sources
- Since:
- 2.0.0
-
getBootstrapConfiguration
public java.util.Optional<java.lang.String> getBootstrapConfiguration()
Returns the annotation processor's class name for the given processorKey.- Returns:
- the annotation processor. Optional as it is possible that there is no registered annotation processor.
-
-