Class

org.springframework.scala.beans.factory.annotation

ConstructorAutowiredAnnotationBeanPostProcessor

Related Doc: package annotation

Permalink

class ConstructorAutowiredAnnotationBeanPostProcessor extends InstantiationAwareBeanPostProcessorAdapter with Ordered

Simple extension of org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor that detects the presence of @Autowired on a class with a single constructor.

If both conditions are met then the constructor will be marked as a candidate constructor, equivalent to marking the constructor with @Autowired in Java.

This allows Scala inline constructors to be eligible for autowiring using the following natural syntax.

@Autowired
class MyBean(dep: MyDependency) { ... }
Annotations
@Component()
Linear Supertypes
Ordered, InstantiationAwareBeanPostProcessorAdapter, SmartInstantiationAwareBeanPostProcessor, InstantiationAwareBeanPostProcessor, BeanPostProcessor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ConstructorAutowiredAnnotationBeanPostProcessor
  2. Ordered
  3. InstantiationAwareBeanPostProcessorAdapter
  4. SmartInstantiationAwareBeanPostProcessor
  5. InstantiationAwareBeanPostProcessor
  6. BeanPostProcessor
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConstructorAutowiredAnnotationBeanPostProcessor()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def determineCandidateConstructors(beanClass: Class[_], beanName: String): Array[Constructor[_]]

    Permalink
    Definition Classes
    ConstructorAutowiredAnnotationBeanPostProcessor → InstantiationAwareBeanPostProcessorAdapter → SmartInstantiationAwareBeanPostProcessor
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getEarlyBeanReference(arg0: Any, arg1: String): AnyRef

    Permalink
    Definition Classes
    InstantiationAwareBeanPostProcessorAdapter → SmartInstantiationAwareBeanPostProcessor
    Annotations
    @throws( ... )
  12. def getOrder(): Int

    Permalink
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final val logger: Log

    Permalink
    Attributes
    protected
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. var order: Int

    Permalink
  20. def postProcessAfterInitialization(arg0: Any, arg1: String): AnyRef

    Permalink
    Definition Classes
    InstantiationAwareBeanPostProcessorAdapter → BeanPostProcessor
    Annotations
    @throws( ... )
  21. def postProcessAfterInstantiation(arg0: Any, arg1: String): Boolean

    Permalink
    Definition Classes
    InstantiationAwareBeanPostProcessorAdapter → InstantiationAwareBeanPostProcessor
    Annotations
    @throws( ... )
  22. def postProcessBeforeInitialization(arg0: Any, arg1: String): AnyRef

    Permalink
    Definition Classes
    InstantiationAwareBeanPostProcessorAdapter → BeanPostProcessor
    Annotations
    @throws( ... )
  23. def postProcessBeforeInstantiation(arg0: Class[_], arg1: String): AnyRef

    Permalink
    Definition Classes
    InstantiationAwareBeanPostProcessorAdapter → InstantiationAwareBeanPostProcessor
    Annotations
    @throws( ... )
  24. def postProcessPropertyValues(arg0: PropertyValues, arg1: Array[PropertyDescriptor], arg2: Any, arg3: String): PropertyValues

    Permalink
    Definition Classes
    InstantiationAwareBeanPostProcessorAdapter → InstantiationAwareBeanPostProcessor
    Annotations
    @throws( ... )
  25. def predictBeanType(arg0: Class[_], arg1: String): Class[_]

    Permalink
    Definition Classes
    InstantiationAwareBeanPostProcessorAdapter → SmartInstantiationAwareBeanPostProcessor
  26. def setOrder(arg0: Int): Unit

    Permalink
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Ordered

Inherited from InstantiationAwareBeanPostProcessorAdapter

Inherited from SmartInstantiationAwareBeanPostProcessor

Inherited from InstantiationAwareBeanPostProcessor

Inherited from BeanPostProcessor

Inherited from AnyRef

Inherited from Any

Ungrouped