Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reformat

  • Loading branch information...
commit 8e7cef41eea6f0c0857db296eb993db2fe984546 1 parent c4682a1
@jfarcand jfarcand authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 README.md
View
5 README.md
@@ -284,7 +284,8 @@ There is many ways to deploy a ServiceDefinition. First, you need to decide whic
public List<ServiceDefinition> defineServices(Injector injector) {
Action action = new PetstoreAction();
- ServiceDefinition serviceDefinition = injector.getInstance(ServiceDefinition.class) // Can also be created using new DefaultServiceDefinition();
+ // Can also be created using new DefaultServiceDefinition();
+ ServiceDefinition serviceDefinition = injector.getInstance(ServiceDefinition.class)
serviceDefinition
.consuming(JSON)
.producing(JSON);
@@ -310,6 +311,8 @@ You can also let scan for classes annotated with the @Service annotation that co
ServiceDefinition serviceDefinition;
public ServiceDefinition create() {
+ Action action = new PetstoreAction();
+
serviceDefinition
.consuming(JSON)
.producing(JSON);
Please sign in to comment.
Something went wrong with that request. Please try again.