org.softamis.cluster4spring.support
Interface EndpointFactory<E extends Endpoint<SI>,SI extends ServiceMoniker>
- Type Parameters:
SI
- type of data used to invoke remote service (such as remote service URL)E
- type of endpoints that could be created by this factory
- All Known Implementing Classes:
- RmiEndpointFactory
public interface EndpointFactory<E extends Endpoint<SI>,SI extends ServiceMoniker>
Factory that is used to create service endpoints. An appropriate type of endpoint and
therefore factory should be implemented for every corresponging cluster4spring protocol.
- Author:
- Andrew Sazonov
Method Summary |
E |
createServiceEndpoint(org.springframework.remoting.support.RemoteInvocationFactory aFactory,
java.lang.String aBeanName,
SI aServiceInfo)
Creates endpoint for cluster4spring protocol supported by particular factory. |
createServiceEndpoint
E createServiceEndpoint(org.springframework.remoting.support.RemoteInvocationFactory aFactory,
java.lang.String aBeanName,
SI aServiceInfo)
throws org.springframework.remoting.RemoteAccessException
- Creates endpoint for cluster4spring protocol supported by particular factory.
- Parameters:
aFactory
- factory used to create remote invocationsaBeanName
- name of bean/serviceaServiceInfo
- information about remote service
- Returns:
- created endpoint
- Throws:
org.springframework.remoting.RemoteAccessException
- thrown if endpoint could not be created.