Package com.consol.citrus
Interface CitrusContextProvider
-
- All Known Implementing Classes:
DefaultCitrusContextProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CitrusContextProvider
- Author:
- Christoph Deppisch
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
LOG
Loggerstatic String
RESOURCE_PATH
Endpoint parser resource lookup pathstatic com.consol.citrus.spi.ResourcePathTypeResolver
TYPE_RESOLVER
Default Citrus context provider from classpath resource properties
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description CitrusContext
create()
Create Citrus context with this provider.static CitrusContextProvider
lookup()
Resolves context provider from resource path lookup.static Optional<CitrusContextProvider>
lookup(String name)
Resolves context provider from resource path lookup with given resource name.
-
-
-
Field Detail
-
LOG
static final org.slf4j.Logger LOG
Logger
-
RESOURCE_PATH
static final String RESOURCE_PATH
Endpoint parser resource lookup path- See Also:
- Constant Field Values
-
TYPE_RESOLVER
static final com.consol.citrus.spi.ResourcePathTypeResolver TYPE_RESOLVER
Default Citrus context provider from classpath resource properties
-
-
Method Detail
-
create
CitrusContext create()
Create Citrus context with this provider.- Returns:
-
lookup
static CitrusContextProvider lookup()
Resolves context provider from resource path lookup. Scans classpath for provider meta information and instantiates first found or default fallback provider.- Returns:
-
lookup
static Optional<CitrusContextProvider> lookup(String name)
Resolves context provider from resource path lookup with given resource name. Scans classpath for provider meta information with given name and returns the instance. Returns optional instead of throwing exception when no context provider could be found.- Parameters:
name
-- Returns:
-
-