Interface DroolsModelBuildContext
-
- All Known Implementing Classes:
AbstractDroolsModelBuildContext,JavaDroolsModelBuildContext,QuarkusDroolsModelBuildContext,SpringBootDroolsModelBuildContext
public interface DroolsModelBuildContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceDroolsModelBuildContext.Builder
-
Field Summary
Fields Modifier and Type Field Description static StringAPPLICATION_PROPERTIES_FILE_NAMEstatic StringDEFAULT_PACKAGE_NAMEstatic StringKOGITO_GENERATE_DIstatic StringKOGITO_GENERATE_REST
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Collection<String>getApplicationProperties()Optional<String>getApplicationProperty(String property)AppPathsgetAppPaths()ClassLoadergetClassLoader()StringgetPackageName()default booleanhasDI()Method to check if dependency injection is available and enabled.Stringname()Name of the context (e.g.voidsetApplicationProperty(String key, String value)
-
-
-
Field Detail
-
APPLICATION_PROPERTIES_FILE_NAME
static final String APPLICATION_PROPERTIES_FILE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_PACKAGE_NAME
static final String DEFAULT_PACKAGE_NAME
- See Also:
- Constant Field Values
-
KOGITO_GENERATE_REST
static final String KOGITO_GENERATE_REST
- See Also:
- Constant Field Values
-
KOGITO_GENERATE_DI
static final String KOGITO_GENERATE_DI
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasDI
default boolean hasDI()
Method to check if dependency injection is available and enabled. This is platform/classpath specific (e.g. Quarkus) but it can also be explicitly disabled using kogito.generate.di property
-
getApplicationProperties
Collection<String> getApplicationProperties()
-
getPackageName
String getPackageName()
-
getClassLoader
ClassLoader getClassLoader()
-
getAppPaths
AppPaths getAppPaths()
-
name
String name()
Name of the context (e.g. Quarkus, Spring) used to identify a context and for template naming conventions (seeTemplatedGenerator)
-
-