public class QueryHandlerSubscriber extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.context.SmartLifecycle
QueryHandlerAdapter
with the query bus.Constructor and Description |
---|
QueryHandlerSubscriber() |
Modifier and Type | Method and Description |
---|---|
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setQueryBus(QueryBus queryBus) |
void |
setQueryHandlers(Collection<QueryHandlerAdapter> queryHandlers) |
void |
start() |
void |
stop() |
void |
stop(Runnable runnable) |
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void setQueryHandlers(Collection<QueryHandlerAdapter> queryHandlers)
public void setQueryBus(QueryBus queryBus)
public boolean isAutoStartup()
isAutoStartup
in interface org.springframework.context.SmartLifecycle
public void stop(Runnable runnable)
stop
in interface org.springframework.context.SmartLifecycle
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public int getPhase()
getPhase
in interface org.springframework.context.Phased
Copyright © 2010–2018. All rights reserved.