public class IbisApplicationContext extends Object implements Closeable
servlet
it will register the servlet in the context. When the Application Context is created or destroyed it will also create/destroy the servlet.
This ensures that the correct bus
will be used in which CXF will register it's endpoints and dispatchers.
servlet
initializes.
Otherwise the servlet will register under the wrong bus
!
WebApplicationContextUtils.getWebApplicationContext(javax.servlet.ServletContext)
Modifier and Type | Class and Description |
---|---|
static class |
IbisApplicationContext.BootState |
Modifier and Type | Field and Description |
---|---|
protected static AppConstants |
APP_CONSTANTS |
Constructor and Description |
---|
IbisApplicationContext() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Destroys the Spring context
|
protected void |
createApplicationContext()
Create Spring Bean factory.
|
<T> T |
createBeanAutowireByName(Class<T> beanClass)
Deprecated.
|
protected org.springframework.context.support.AbstractApplicationContext |
getApplicationContext()
Returns the Spring XML Bean Factory If non exists yet it will create one.
|
<T> T |
getBean(String beanName,
Class<T> beanClass)
Deprecated.
|
IbisApplicationContext.BootState |
getBootState() |
protected String[] |
getSpringConfigurationFiles(ClassLoader classLoader)
Loads springUnmanagedDeployment, SpringApplicationContext and files specified by the SPRING.CONFIG.LOCATIONS
property in AppConstants.properties
|
Exception |
getStartupException() |
void |
setParentContext(org.springframework.context.ApplicationContext parentContext) |
protected static final AppConstants APP_CONSTANTS
public void setParentContext(org.springframework.context.ApplicationContext parentContext)
protected void createApplicationContext() throws org.springframework.beans.BeansException
springContext
,
if not null
.org.springframework.beans.BeansException
- If the Factory can not be created.protected String[] getSpringConfigurationFiles(ClassLoader classLoader)
classLoader
- to use in order to find and validate the Spring Configuration filespublic void close()
close
in interface Closeable
close
in interface AutoCloseable
@Deprecated public <T> T getBean(String beanName, Class<T> beanClass)
@Deprecated public <T> T createBeanAutowireByName(Class<T> beanClass)
protected org.springframework.context.support.AbstractApplicationContext getApplicationContext()
public IbisApplicationContext.BootState getBootState()
public Exception getStartupException()
Copyright © 2023 Frank!Framework. All rights reserved.