diff options
Diffstat (limited to '')
-rw-r--r-- | sca-java-2.x/contrib/modules/binding-comet-runtime/src/main/java/org/apache/tuscany/sca/binding/comet/runtime/CometBindingProviderFactory.java | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/sca-java-2.x/contrib/modules/binding-comet-runtime/src/main/java/org/apache/tuscany/sca/binding/comet/runtime/CometBindingProviderFactory.java b/sca-java-2.x/contrib/modules/binding-comet-runtime/src/main/java/org/apache/tuscany/sca/binding/comet/runtime/CometBindingProviderFactory.java index 6e5cc28abf..fc5fd9f371 100644 --- a/sca-java-2.x/contrib/modules/binding-comet-runtime/src/main/java/org/apache/tuscany/sca/binding/comet/runtime/CometBindingProviderFactory.java +++ b/sca-java-2.x/contrib/modules/binding-comet-runtime/src/main/java/org/apache/tuscany/sca/binding/comet/runtime/CometBindingProviderFactory.java @@ -37,31 +37,36 @@ public class CometBindingProviderFactory implements BindingProviderFactory<Comet /** * Underlying servlet host. Injected by constructor. */ - private ServletHost servletHost; + private final ServletHost servletHost; /** * Constructor. */ - public CometBindingProviderFactory(ExtensionPointRegistry extensionPoints) { + public CometBindingProviderFactory(final ExtensionPointRegistry extensionPoints) { this.servletHost = ServletHostHelper.getServletHost(extensionPoints); } + @Override public Class<CometBinding> getModelType() { return CometBinding.class; } /** - * Creates a provider for a reference that has comet binding specified in the scdl. + * Creates a provider for a reference that has comet binding specified in + * the scdl. */ - public ReferenceBindingProvider createReferenceBindingProvider(RuntimeEndpointReference endpoint) { + @Override + public ReferenceBindingProvider createReferenceBindingProvider(final RuntimeEndpointReference endpoint) { return new CometReferenceBindingProvider(endpoint); } /** - * Creates a provider for a service that has comet binding specified in the scdl. + * Creates a provider for a service that has comet binding specified in the + * scdl. */ - public ServiceBindingProvider createServiceBindingProvider(RuntimeEndpoint endpoint) { - return new CometServiceBindingProvider(endpoint, servletHost); + @Override + public ServiceBindingProvider createServiceBindingProvider(final RuntimeEndpoint endpoint) { + return new CometServiceBindingProvider(endpoint, this.servletHost); } } |