public final class BasicEndpoint extends Object implements Endpoint
Endpoint
which simply
wraps a ServiceConfiguration
and it's associated service implementation.Modifier and Type | Method and Description |
---|---|
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.
|
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 endpointBasicEndpoint
which contains the given
configuration and service, will never return nullIllegalArgumentException
- if either serviceConfiguration or service are nullpublic ServiceConfiguration getServiceConfiguration()
Endpoint
getServiceConfiguration
in interface Endpoint
public Object getService()
Endpoint
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.
getService
in interface Endpoint
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.