我不得不生產者: @Produces
public IPaymentGateway getStripePaymentGateway(@StripeApiKey final String apiKey) {
return new StripeFluentAPI(apiKey);
}
@Produces
public IPaymentGateway getStripePayment
我想實現PAX-CDI + CXF + Karaf 4.0.8 我的REST服務: import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
//Maps for the `say` in the URL
@Path("say")
public interface HelloRestS
在CDI 2.0中,一個can fire an event asynchronously通過調用Event.fireAsync(),然後通過@ObservesAsync帶註釋的偵聽器來收聽此事件。 爲什麼我們需要Event.firesAsync()和@ObservesAsync? 莫非不是CDI 2.0進程異步事件由Event.fire()解僱,與@ObservesAsync抓? 或者相反,爲什麼