This class accumulates the information necessary to create {@link WSEndpoint}, and then when {@link #publish} methodis called it will be created.
This object also allows accumulated information to be retrieved. @author Jitendra Kotamraju
107108109110111112113114115
*/ public static final ProviderImpl INSTANCE = new ProviderImpl(); @Override public Endpoint createEndpoint(String bindingId, Object implementor) { return new EndpointImpl( (bindingId != null) ? BindingID.parse(bindingId) : BindingID.parse(implementor.getClass()), implementor); }
133134135136137138139140141142143
} @Override public Endpoint createAndPublishEndpoint(String address, Object implementor) { Endpoint endpoint = new EndpointImpl( BindingID.parse(implementor.getClass()), implementor); endpoint.publish(address); return endpoint; }
141142143144145146147148149
endpoint.publish(address); return endpoint; } public Endpoint createEndpoint(String bindingId, Object implementor, WebServiceFeature... features) { return new EndpointImpl( (bindingId != null) ? BindingID.parse(bindingId) : BindingID.parse(implementor.getClass()), implementor, features); }
147148149150151152153154155156
(bindingId != null) ? BindingID.parse(bindingId) : BindingID.parse(implementor.getClass()), implementor, features); } public Endpoint createAndPublishEndpoint(String address, Object implementor, WebServiceFeature... features) { Endpoint endpoint = new EndpointImpl( BindingID.parse(implementor.getClass()), implementor, features); endpoint.publish(address); return endpoint; }
154155156157158159160161162
endpoint.publish(address); return endpoint; } public Endpoint createEndpoint(String bindingId, Class implementorClass, Invoker invoker, WebServiceFeature... features) { return new EndpointImpl( (bindingId != null) ? BindingID.parse(bindingId) : BindingID.parse(implementorClass), implementorClass, invoker, features); }