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, getServiceId
public StaticServiceLocator()
public StaticServiceLocator(T service)
service
- servicepublic T getService()
getService
in interface ServiceLocator<T>
ServiceLocator.getService()
public String getServiceId()
ServiceLocator
getServiceId
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.ApplicationContextAware
org.springframework.beans.BeansException
Copyright © 2019. All rights reserved.