Package org.kuali.rice.ksb.api.bus
Interface Endpoint
- All Known Implementing Classes:
BasicEndpoint
public interface Endpoint
An
Endpoint contains a reference to the ServiceConfiguration
for a service as well as a proxy to the service endpoint that can be invoked.
This service can be cast to the appropriate service interface in order to invoke the desired operations.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a reference to the service that can be invoked through this endpoint.Returns the service configuration information for this endpoint.
-
Method Details
-
getServiceConfiguration
ServiceConfiguration getServiceConfiguration()Returns the service configuration information for this endpoint.- Returns:
- the service configuration for this endpoint, should never return null
-
getService
Object getService()Returns a reference to the service that can be invoked through this endpoint. This could potentially be a proxy to the service (in the case that the endpoint is pointing to a remote service) so calling code should cast this object to the appropriate service interface before using.It is the client's responsibility to ensure that they are casting the service to the correct interface(s) based on their knowledge of what interface the service should implement.
- Returns:
- a reference to the service object which can be used to invoke operations against the endpoint, should never return null
-