I'm using Thorntail ( wildfly swarm )
service_xx is a template file which is compiled at runtime ( after updating the patterns ) with the following code :
***************************************************************
public class {SERVICE_NAME}
{
@Inject
private IStreamer streamerOutputJson ;
@PostConstruct
public void init() { }
public {SERVICE_NAME} () { }
@GET
@Produces("json/plain")
public Response getResourceASJson( @HeaderParam("Keep") String filterdIndex )
}
***************************************************************
It seem that streamerOutputJson can't be injected ( When the annotation @Counted is used )