Interface ModuleBeanInfo

All Superinterfaces:
BeanInfo, Info, ReporterInfo
All Known Subinterfaces:
OverridableBeanInfo, WrapperBeanInfo

public interface ModuleBeanInfo extends BeanInfo

A module bean info holds the data required to process a bean in a module.

Author:
Jeremy Kuhn
  • Method Details

    • getProvidedType

      TypeMirror getProvidedType()

      Returns the type provided by the bean which is the type that will be exposed outside the module.

      Returns:
      a type
    • getStrategy

      Bean.Strategy getStrategy()

      Returns the strategy of the bean.

      Returns:
      a bean strategy
    • getVisibility

      Bean.Visibility getVisibility()

      Returns the visibility of the bean.

      A public bean is exposed to other modules whereas a private bean is only visible from inside the module.

      Returns:
      a visibility
    • getInitElements

      ExecutableElement[] getInitElements()

      Returns the methods that should be invoked to initialize a bean instance.

      Returns:
      an array of executable elements
    • getDestroyElements

      ExecutableElement[] getDestroyElements()

      Returns the methods that should be invoked to destroy a bean instance.

      Returns:
      an array of executable elements
    • getSockets

      ModuleBeanSocketInfo[] getSockets()

      Returns the list of sockets specified by the bean.

      A bean socket defines an entry point for dependency injection on the bean.

      Returns:
      an array of bean socket info
    • getRequiredSockets

      ModuleBeanSocketInfo[] getRequiredSockets()

      Returns the list of required sockets specified by the bean.

      A required socket must be resolved during dependency injection in order to instantiate the bean.

      Returns:
      an array of bean socket info
    • getOptionalSockets

      ModuleBeanSocketInfo[] getOptionalSockets()

      Returns the list of optional sockets specified by the bean.

      Unlike required sockets, an optional socket is not required to instantiate the bean.

      Returns:
      an array of bean socket info