public class LazyTargetResolver extends java.lang.Object implements UnregistrationNotifier
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.atomic.AtomicBoolean |
activated |
private org.springframework.beans.factory.BeanFactory |
beanFactory |
private java.lang.String |
beanName |
private boolean |
cacheService |
private ServiceRegistrationDecorator |
decorator |
private java.lang.Object |
lock |
private ListenerNotifier |
notifier |
private java.lang.Object |
target |
| Constructor and Description |
|---|
LazyTargetResolver(java.lang.Object target,
org.springframework.beans.factory.BeanFactory beanFactory,
java.lang.String beanName,
boolean cacheService,
ListenerNotifier notifier,
boolean lazyListeners) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
java.lang.Object |
getBean() |
private java.lang.Object |
getBeanIfPossible() |
java.lang.Class<?> |
getType() |
void |
notifyIfPossible() |
void |
setDecorator(ServiceRegistrationDecorator decorator) |
void |
startupUnregisterIfPossible() |
void |
unregister(java.util.Map properties) |
private final org.springframework.beans.factory.BeanFactory beanFactory
private final java.lang.String beanName
private final boolean cacheService
private volatile java.lang.Object target
private final java.lang.Object lock
private final java.util.concurrent.atomic.AtomicBoolean activated
private final ListenerNotifier notifier
private volatile ServiceRegistrationDecorator decorator
public LazyTargetResolver(java.lang.Object target,
org.springframework.beans.factory.BeanFactory beanFactory,
java.lang.String beanName,
boolean cacheService,
ListenerNotifier notifier,
boolean lazyListeners)
public void activate()
private java.lang.Object getBeanIfPossible()
public java.lang.Object getBean()
public java.lang.Class<?> getType()
public void unregister(java.util.Map properties)
unregister in interface UnregistrationNotifierpublic void setDecorator(ServiceRegistrationDecorator decorator)
public void notifyIfPossible()
public void startupUnregisterIfPossible()