Skip to content

Commit

Permalink
Introduce ConnectionFactoryWrapperBuildItem
Browse files Browse the repository at this point in the history
  • Loading branch information
zhfeng committed Dec 8, 2022
1 parent f030a3e commit 5396fe9
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package io.quarkus.deployment.builditem;

import java.util.function.Function;

import io.quarkus.builder.item.SimpleBuildItem;

/**
* A build item that can be used to wrap ConnectionFactory
*/
public final class ConnectionFactoryWrapperBuildItem extends SimpleBuildItem {
private final Function<Object, Object> wrapper;

public ConnectionFactoryWrapperBuildItem(Function<Object, Object> wrapper) {
this.wrapper = wrapper;
}

public Function<Object, Object> getWrapper() {
return wrapper;
}
}

0 comments on commit 5396fe9

Please sign in to comment.