WebServerApplicationContext

Interface to be implemented by application contexts that create and manage the lifecycle of an embedded WebServer.

Author

Phillip Webb

Since

2.0.0

Inheritors

Properties

Link copied to clipboard
val CLASSPATH_ALL_URL_PREFIX: String = "classpath*:"
Link copied to clipboard
val CLASSPATH_URL_PREFIX: String = "classpath:"
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun containsBean(name: String): Boolean
Link copied to clipboard
abstract fun containsBeanDefinition(beanName: String): Boolean
Link copied to clipboard
abstract fun containsLocalBean(name: String): Boolean
Link copied to clipboard
abstract fun <A : Annotation?> findAllAnnotationsOnBean(beanName: String, annotationType: Class<A>, allowFactoryBeanInit: Boolean): Set<A>
Link copied to clipboard
abstract fun <A : Annotation?> findAnnotationOnBean(beanName: String, annotationType: Class<A>): A
Link copied to clipboard
abstract fun getAliases(name: String): Array<String>
Link copied to clipboard
abstract fun getApplicationName(): String
Link copied to clipboard
abstract fun getBean(name: String): Any
abstract fun <T> getBean(name: String, requiredType: Class<T>): T
Link copied to clipboard
abstract fun getBeanDefinitionCount(): Int
Link copied to clipboard
Link copied to clipboard
abstract fun getBeanNamesForAnnotation(annotationType: Class<out Annotation>): Array<String>
Link copied to clipboard
Link copied to clipboard
abstract fun <T> getBeanProvider(requiredType: Class<T>, allowEagerInit: Boolean): ObjectProvider<T>
Link copied to clipboard
abstract fun <T> getBeansOfType(type: Class<T>): Map<String, T>
Link copied to clipboard
abstract fun getBeansWithAnnotation(annotationType: Class<out Annotation>): Map<String, Any>
Link copied to clipboard
abstract fun getClassLoader(): ClassLoader
Link copied to clipboard
abstract fun getDisplayName(): String
Link copied to clipboard
abstract fun getEnvironment(): Environment
Link copied to clipboard
abstract fun getId(): String
Link copied to clipboard
abstract fun getMessage(code: String, args: Array<Any>, defaultMessage: String, locale: Locale): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getResource(location: String): Resource
Link copied to clipboard
abstract fun getResources(locationPattern: String): Array<Resource>
Link copied to clipboard
abstract fun getServerNamespace(): String
Returns the namespace of the web server application context or null if no namespace has been set.
Returns the server namespace if the specified context is a WebServerApplicationContext.
Link copied to clipboard
abstract fun getStartupDate(): Long
Link copied to clipboard
abstract fun getType(name: String): Class<out Any>
Link copied to clipboard
abstract fun getWebServer(): WebServer
Returns the WebServer that was created by the context or null if the server has not yet been created.
Link copied to clipboard
open fun hasServerNamespace(context: ApplicationContext, serverNamespace: String): Boolean
Returns true if the specified context is a WebServerApplicationContext with a matching server namespace.
Link copied to clipboard
abstract fun isPrototype(name: String): Boolean
Link copied to clipboard
abstract fun isSingleton(name: String): Boolean
Link copied to clipboard
abstract fun isTypeMatch(name: String, typeToMatch: ResolvableType): Boolean
Link copied to clipboard