-
-
Save rmannibucau/e14324cdfc278ad388f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.openejb.testing.ApplicationComposers | |
import org.apache.openejb.testing.Classes | |
import org.apache.openejb.testing.EnableServices | |
import javax.ws.rs.GET | |
import javax.ws.rs.Path | |
@Grab("org.apache.openejb:javaee-api:7.0-SNAPSHOT") | |
@Grab("org.apache.openejb:openejb-cxf-rs:5.0.0-SNAPSHOT") | |
@Path("hi") | |
class Hi { | |
@GET | |
String hi() { | |
"Hi" | |
} | |
} | |
@EnableServices("jaxrs") | |
@Classes(Hi) | |
class Run { | |
} | |
ApplicationComposers.run(Run); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A (small) improvement: you can remove the
.class
fromHi.class
andRun.class
.