|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.ksb.api.bus.support.BasicEndpoint
public final class BasicEndpoint
A simple immutable implementation of an Endpoint which simply
wraps a ServiceConfiguration and it's associated service implementation.
| Method Summary | |
|---|---|
Object |
getService()
Returns a reference to the service that can be invoked through this endpoint. |
ServiceConfiguration |
getServiceConfiguration()
Returns the service configuration information for this endpoint. |
static BasicEndpoint |
newEndpoint(ServiceConfiguration serviceConfiguration,
Object service)
Constructs a new basic endpoint from the given service configuration and service instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static BasicEndpoint newEndpoint(ServiceConfiguration serviceConfiguration,
Object service)
serviceConfiguration - the service configuration to include in this endpointservice - the service implementation instance to include in this endpoint
BasicEndpoint which contains the given
configuration and service, will never return null
IllegalArgumentException - if either serviceConfiguration or service are nullpublic ServiceConfiguration getServiceConfiguration()
Endpoint
getServiceConfiguration in interface Endpointpublic Object getService()
EndpointIt 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.
getService in interface Endpoint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||