Skip to content

Commit

Permalink
Make AbstractProtocolConfigurationBuilder a usable builder
Browse files Browse the repository at this point in the history
  • Loading branch information
rhusar committed Feb 25, 2015
1 parent d0f988a commit 84b78bb
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -70,19 +70,19 @@ public ServiceBuilder<P> build(ServiceTarget target) {
return builder.setInitialMode(ServiceController.Mode.ON_DEMAND); return builder.setInitialMode(ServiceController.Mode.ON_DEMAND);
} }


public Builder<P> setModule(ModuleIdentifier module) { public AbstractProtocolConfigurationBuilder<P> setModule(ModuleIdentifier module) {
this.module = module; this.module = module;
return this; return this;
} }


public Builder<P> setSocketBinding(String socketBindingName) { public AbstractProtocolConfigurationBuilder<P> setSocketBinding(String socketBindingName) {
if (socketBindingName != null) { if (socketBindingName != null) {
this.socketBinding = new InjectedValueDependency<>(SocketBinding.JBOSS_BINDING_NAME.append(socketBindingName), SocketBinding.class); this.socketBinding = new InjectedValueDependency<>(SocketBinding.JBOSS_BINDING_NAME.append(socketBindingName), SocketBinding.class);
} }
return this; return this;
} }


public Builder<P> addProperty(String name, String value) { public AbstractProtocolConfigurationBuilder<P> addProperty(String name, String value) {
this.properties.put(name, value); this.properties.put(name, value);
return this; return this;
} }
Expand Down

0 comments on commit 84b78bb

Please sign in to comment.