Interface InitializationParameterAssigner

All Known Implementing Classes:
AssignerMatchClass

public interface InitializationParameterAssigner
Assigns a parameter to a bean, if the bean accepts it.

It is called by BeanInitializer to assign the parameter to the properties of the bean or its children.

Author:
Owen Feehan
  • Method Details

    • accepts

      boolean accepts(Class<?> initializationType)
      Whether a particular type of initialization parameters is accepted?
      Parameters:
      initializationType - the class of initialization parameters to be checked, whether it is accepted or not.
      Returns:
      true iff paramType is an acceptable type for initialization parameters.
    • assignInitializationToProperties

      void assignInitializationToProperties(Object bean, Object initialization, Object parent, Logger logger) throws InitializeException
      Assigns the parameter to the bean.
      Parameters:
      bean - the bean.
      initialization - the parameter to assign.
      parent - any parent bean of bean.
      logger - the logger.
      Throws:
      InitializeException - if the initialization cannot successfully complete.
    • describeAcceptedClasses

      String describeAcceptedClasses()
      A string describing which classes of initialization-parameters are accepted or not.
      Returns:
      a human readable string.