Interface InitializingBeanDefinition<T>

Type Parameters:
T - The bean definition type
All Superinterfaces:
AnnotationMetadata, AnnotationMetadataDelegate, AnnotationMetadataProvider, AnnotationSource, ArgumentCoercible<T>, BeanContextConditional, BeanDefinition<T>, BeanInfo<T>, BeanType<T>, Named, Ordered, QualifiedBeanType<T>

public interface InitializingBeanDefinition<T> extends BeanDefinition<T>
A bean definition that is provides initialization hooks normally in the form of methods annotated with PostConstruct.
Since:
1.0
Author:
Graeme Rocher
See Also:
  • Method Details

    • initialize

      default T initialize(BeanContext context, T bean)
      Initializes the bean invoking all PostConstruct hooks.
      Parameters:
      context - The bean context
      bean - The bean
      Returns:
      The bean instance
    • initialize

      T initialize(BeanResolutionContext resolutionContext, BeanContext context, T bean)
      Initializes the bean invoking all PostConstruct hooks.
      Parameters:
      resolutionContext - The resolution context
      context - The bean context
      bean - The bean
      Returns:
      The bean instance