added @DefaultBean annotation
All checks were successful
Build, test and publish the Quarkus libraries / build (push) Successful in 10m4s
All checks were successful
Build, test and publish the Quarkus libraries / build (push) Successful in 10m4s
This commit is contained in:
parent
aea2f6935b
commit
aa3ccebae3
2 changed files with 4 additions and 0 deletions
|
@ -1,10 +1,12 @@
|
||||||
package ch.phoenixtechnologies.quarkus.commons.random;
|
package ch.phoenixtechnologies.quarkus.commons.random;
|
||||||
|
|
||||||
|
import io.quarkus.arc.DefaultBean;
|
||||||
import jakarta.enterprise.context.ApplicationScoped;
|
import jakarta.enterprise.context.ApplicationScoped;
|
||||||
|
|
||||||
import java.math.BigInteger;
|
import java.math.BigInteger;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
@DefaultBean
|
||||||
@ApplicationScoped
|
@ApplicationScoped
|
||||||
class RandomNumberGeneratorImpl implements RandomNumberGenerator {
|
class RandomNumberGeneratorImpl implements RandomNumberGenerator {
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
package ch.phoenixtechnologies.quarkus.commons.random;
|
package ch.phoenixtechnologies.quarkus.commons.random;
|
||||||
|
|
||||||
import com.fasterxml.uuid.Generators;
|
import com.fasterxml.uuid.Generators;
|
||||||
|
import io.quarkus.arc.DefaultBean;
|
||||||
import jakarta.enterprise.context.ApplicationScoped;
|
import jakarta.enterprise.context.ApplicationScoped;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@DefaultBean
|
||||||
@ApplicationScoped
|
@ApplicationScoped
|
||||||
class UUIDGeneratorImpl implements UUIDGenerator {
|
class UUIDGeneratorImpl implements UUIDGenerator {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue