SpringContainer

org.beangle.cdi.spring.context.SpringContainer
class SpringContainer extends BindModuleProcessor, Container, InitializingBean, BeanFactoryAware, EventListener[BeanFactoryEvent]

Spring based IOC Container

Attributes

Since

3.1.0

Graph
Supertypes
trait EventListener[BeanFactoryEvent]
trait EventListener
trait BeanFactoryAware
trait Aware
trait InitializingBean
trait Container
trait Logging
trait BeanDefinitionRegistryPostProcessor
trait BeanFactoryPostProcessor
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def afterPropertiesSet(): Unit

Move temporary hooks into myself

Move temporary hooks into myself

PS. for SpringContainer is a BeanDefinitionRegistryPostProcessor, so when context initializing, the bean is inited before others,so using spring native InitializingBean,not beangle's Initializing interface.

Attributes

Definition Classes
InitializingBean
override def contains(key: Any): Boolean

Attributes

Definition Classes
Container
override def getBean[T](key: Any): Option[T]

Attributes

Definition Classes
Container
override def getBean[T](clazz: Class[T]): Option[T]

Attributes

Definition Classes
Container
override def getBeans[T](clazz: Class[T]): Map[String, T]

Attributes

Definition Classes
Container
override def getDefinition(key: Any): Any

Attributes

Definition Classes
Container
override def getType(key: Any): Option[Class[_]]

Attributes

Definition Classes
Container
override def id: String

Attributes

Definition Classes
Container
override def keys: Set[_]

Attributes

Definition Classes
Container
def onEvent(event: BeanFactoryEvent): Unit

Handle an application event.

Handle an application event.

Attributes

override def setBeanFactory(beanFactory: BeanFactory): Unit

Attributes

Definition Classes
BeanFactoryAware
def supportsEventType(eventType: Class[_ <: Event]): Boolean

Determine whether this listener actually supports the given event type.

Determine whether this listener actually supports the given event type.

Attributes

def supportsSourceType(sourceType: Class[_]): Boolean

Determine whether this listener actually supports the given source type.

Determine whether this listener actually supports the given source type.

Attributes

Inherited methods

override def postProcessBeanDefinitionRegistry(bdRegistry: BeanDefinitionRegistry): Unit

Automate register and wire bean Reconfig beans

Automate register and wire bean Reconfig beans

Attributes

Definition Classes
BindModuleProcessor -> BeanDefinitionRegistryPostProcessor
Inherited from:
BindModuleProcessor
def postProcessBeanFactory(factory: ConfigurableListableBeanFactory): Unit

Attributes

Inherited from:
BindModuleProcessor

Concrete fields

var context: DefaultListableBeanFactory
var listeners: List[ContainerListener]
var parent: Container

Inherited fields

protected val logger: Logger

Attributes

Inherited from:
Logging
var moduleLocations: Array[Resource]

Attributes

Inherited from:
BindModuleProcessor
var modules: Set[BindModule]

Attributes

Inherited from:
BindModuleProcessor
var name: String

Attributes

Inherited from:
BindModuleProcessor