Class CompositeDataSourceResolver
java.lang.Object
io.micronaut.crac.resources.datasources.resolver.CompositeDataSourceResolver
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,DataSourceResourceResolver
@Primary
@Singleton
public class CompositeDataSourceResolver
extends Object
implements DataSourceResourceResolver
Composite DataSourceResolver that delegates to a list of resolvers.
- Since:
- 1.2.0
- Author:
- Tim Yates
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull Optional<org.crac.Resource>
resolve
(@NonNull DataSource dataSource, @NonNull CracConfiguration configuration) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Constructor Details
-
CompositeDataSourceResolver
-
-
Method Details
-
resolve
@NonNull public @NonNull Optional<org.crac.Resource> resolve(@NonNull @NonNull DataSource dataSource, @NonNull @NonNull CracConfiguration configuration) - Specified by:
resolve
in interfaceDataSourceResourceResolver
-