Interface TypeDefinitionVisitor


@NoImplement public interface TypeDefinitionVisitor
Visitor that will be invoked based on a ComponentBuildingDefinition.getTypeDefinition() configuration.
Since:
4.0
  • Method Details

    • onType

      void onType(Class<?> type)
      Invoked when the TypeDefinition it's defined from a Class hardcoded value
      Parameters:
      type - the hardcoded type
    • onConfigurationAttribute

      @Deprecated void onConfigurationAttribute(String attributeName, Class<?> enforcedClass)
      Invoked when the TypeDefinition it's defined from a configuration attribute of the component
      Parameters:
      attributeName - the name of the configuration attribute holding the type definition. Most likely a fully qualified java class name.
      enforcedClass - the name of the class from which the one defined in the attribute must be an instance of.
    • onConfigurationAttribute

      void onConfigurationAttribute(String groupName, String attributeName, Class<?> enforcedClass)
      Invoked when the TypeDefinition it's defined from a configuration attribute of the component
      Parameters:
      attributeName - the name of the parameter group containing the attribute.
      attributeName - the name of the configuration attribute holding the type definition. Most likely a fully qualified java class name.
      enforcedClass - the name of the class from which the one defined in the attribute must be an instance of.
    • onMapType

      void onMapType(TypeDefinition.MapEntryType mapEntryType)
      Invoked when the TypeDefinition it's defined to be a map entry.
      Parameters:
      mapEntryType - the holder for the key type and value type