Skip to content

Commit

Permalink
Update to Quarkus 3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
edeandrea committed Nov 7, 2023
1 parent d25c6fe commit ab7052d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
package org.wookie.observer.runtime;

import java.util.Optional;
import java.util.logging.Handler;

import io.quarkus.arc.runtime.BeanContainer;
import io.quarkus.runtime.RuntimeValue;
import io.quarkus.runtime.annotations.Recorder;

import java.util.Optional;
import java.util.logging.Handler;

@Recorder
public class LogHandlerMaker {

public RuntimeValue<Optional<Handler>> create(BeanContainer beanContainer) {
RecorderService recorder = beanContainer.instance(RecorderService.class);
Handler handler = new LogHandler(recorder);
var recorder = beanContainer.beanInstance(RecorderService.class);
var handler = new LogHandler(recorder);
return new RuntimeValue<>(Optional.of(handler));

}
Expand Down

0 comments on commit ab7052d

Please sign in to comment.