@BuildStep
FeatureBuildItem feature() {
return new FeatureBuildItem(FEATURE);
}
@Record(STATIC_INIT)
@BuildStep
public void helloBuildStep(HelloRecorder recorder) {
recorder.sayHello("World");
}
@Record(RUNTIME_INIT)
@BuildStep
LogHandlerBuildItem addLogHandler(final MinecraftLogHandlerMaker maker, BeanCon
return new LogHandlerBuildItem(maker.create(beanContainer.getValue()));
}
/**
* Makes the interceptor as a bean so we can access it.
*/
@BuildStep
void beans(BuildProducer producer) {
producer.produce(AdditionalBeanBuildItem.unremovableOf(MinecraftLogIntercep
producer.produce(AdditionalBeanBuildItem.unremovableOf(MinecraftService.cla
}
@BuildStep
AnnotationsTransformerBuildItem transform() {
return new AnnotationsTransformerBuildItem(new AnnotationsTransformer() {
public boolean appliesTo(org.jboss.jandex.AnnotationTarget.Kind kind) {
return kind == org.jboss.jandex.AnnotationTarget.Kind.METHOD;
}
public void transform(TransformationContext context) {
if (context.getTarget().asMethod().hasAnnotation(JAX_RS_GET)) {
context.transform().add(MinecraftLog.class).done();
}
}
});
Holly Cummins
Red Hat
@
[email protected]
the importance of
fun in the workplace