public abstract class AbstractSpringApplication extends AbstractApplication
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.annotation.AnnotationConfigApplicationContext |
context
Application context environment.
|
logger, threads| Constructor and Description |
|---|
AbstractSpringApplication() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<Listener> |
buildListeners()
Retruns collection of listeners (not started, but instantiated).
|
protected abstract String |
getPackageToScan()
Returns base package name for context scanning.
|
void |
start()
Runs all listeners.
|
void |
stop()
Stops listeners.
|
destroy, getDaemonName, getDaemonVersion, init, signalprotected org.springframework.context.annotation.AnnotationConfigApplicationContext context
public void start()
start in interface org.apache.commons.daemon.Daemonstart in class AbstractApplicationpublic void stop()
stop in interface org.apache.commons.daemon.Daemonstop in class AbstractApplicationprotected Collection<Listener> buildListeners()
buildListeners in class AbstractApplicationprotected abstract String getPackageToScan()
Copyright © 2015 RafaĆ Wrzeszcz - Wrzasq.pl. All rights reserved.