public class ControllerModule
extends com.google.inject.AbstractModule
Constructor and Description |
---|
ControllerModule() |
ControllerModule(Properties properties) |
Modifier and Type | Method and Description |
---|---|
protected Set<Class<?>> |
bindByAnnotation(Set<Class<?>> matchedClasses)
Initializes specially-marked interfaces that require injection.
|
protected Set<org.springframework.beans.factory.config.BeanDefinition> |
bindNotificationDispatchers(Set<org.springframework.beans.factory.config.BeanDefinition> beanDefinitions)
Searches for all instances of
NotificationDispatcher on the
classpath and registers each as a singleton with the
DispatchFactory . |
protected void |
configure() |
static Properties |
getPersistenceProperties(Configuration configuration)
Get the common persistence related configuration properties.
|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
public ControllerModule(Properties properties) throws Exception
Exception
public static Properties getPersistenceProperties(Configuration configuration)
protected void configure()
configure
in class com.google.inject.AbstractModule
protected Set<Class<?>> bindByAnnotation(Set<Class<?>> matchedClasses)
ClasspathScannerUtils
which in turn uses ClassPath
to
perform the scan.
If matchedClasses
is null this will scan
org.apache.ambari.server
(currently) for any EagerSingleton
or StaticallyInject
or AmbariService
instances.matchedClasses
- the set of previously found classes, or null
to invoke
scanning.protected Set<org.springframework.beans.factory.config.BeanDefinition> bindNotificationDispatchers(Set<org.springframework.beans.factory.config.BeanDefinition> beanDefinitions)
NotificationDispatcher
on the
classpath and registers each as a singleton with the
DispatchFactory
.Copyright © 2022 Apache Software Foundation. All rights reserved.