I'm proud to announce the availability of Juzu 0.6.0 after a few months of development with new features.
@Action public Response.View process(EventQueue<MyEvent> producer) { producer.send("my.event", new MyEvent()); return Controller_.index(); }
@Consumes("my.event") public Response.View process(Event<MyEvent> event) { System.out.println("Received event " + event); return Controller_.index(); }
You can easily provide your own beans for injecting in Juzu applications.
@Action public Response.View action(org.apache.commons.fileupload.FileItem file) throws IOException { return Controller_.index(); }
Ever heard of Arquillian ? Juzu does support it nicely!
Now Juzu integrates with the following injection containers: Weld, Spring and Guice.