T - the type of the service@Deprecated public class StaticServiceLocator<T> extends AbstractServiceLocator<T> implements org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
StaticServiceLocator()
Deprecated.
default constructor.
|
StaticServiceLocator(T service)
Deprecated.
construct a static service locator pointing at a given service.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getService()
Deprecated.
The usual usage pattern of service locators is to call chain a direct call
on the result of this method.
|
String |
getServiceId()
Deprecated.
locate and return a service ID.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Deprecated.
|
void |
setService(T service)
Deprecated.
|
getService, getServiceIdpublic StaticServiceLocator()
public StaticServiceLocator(T service)
service - servicepublic T getService()
getService in interface ServiceLocator<T>ServiceLocator.getService()public String getServiceId()
ServiceLocatorgetServiceId in interface ServiceLocator<T>public void setService(T service)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2019. All rights reserved.