public class ApplicationRunner extends Object
@SpringBootApplication), and then
run(String...) it, cleaning up with a call to close().| Constructor and Description |
|---|
ApplicationRunner(ClassLoader classLoader,
String source) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
containsBean(String name) |
Object |
evaluate(String expression,
Object root,
Object... attrs) |
Object |
getBean(String name) |
Set<String> |
getBeanNames(String type)
List the bean names in the application context for a given type (by its fully qualified name).
|
boolean |
isRunning() |
void |
run(String... args) |
public ApplicationRunner(ClassLoader classLoader, String source)
public void run(String... args)
public boolean containsBean(String name)
public Set<String> getBeanNames(String type)
type - the name of the type (Class)public boolean isRunning()
@PreDestroy public void close()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.