Class InfrastructureTypeUtils

java.lang.Object
org.mule.runtime.extension.api.loader.util.InfrastructureTypeUtils

public class InfrastructureTypeUtils extends Object
Utilities for types considered of "Infrastructure".
Since:
1.8
  • Method Details

    • getActionableInfrastructureTypes

      public static Collection<InfrastructureTypeUtils.MetadataTypeBasedInfrastructureType> getActionableInfrastructureTypes()
      Returns:
      all the infrastructure types available.
    • getMetadataTypeBasedInfrastructureType

      public static InfrastructureTypeUtils.MetadataTypeBasedInfrastructureType getMetadataTypeBasedInfrastructureType(Class<?> infrastructureTypeClass)
      Parameters:
      infrastructureTypeClass - Class of the infrastructure type to obtain.
      Returns:
      the infrastructure type of the given Class.
    • getInfrastructureType

      public static InfrastructureTypeUtils.InfrastructureType getInfrastructureType(String name)
      Parameters:
      name - infrastructure type name.
      Returns:
      the infrastructure type with the given name.
    • getInfrastructureParameterName

      public static Optional<String> getInfrastructureParameterName(org.mule.metadata.api.model.MetadataType fieldType)
      Parameters:
      fieldType - MetadataType infrastructure type.
      Returns:
      infrastructure type name if the given MetadataType corresponds to an infrastructure type.
    • getTypeFor

      public static Optional<Class<?>> getTypeFor(org.mule.runtime.api.component.ComponentIdentifier compId)
      Parameters:
      compId - ComponentIdentifier of an infrastructure type.
      Returns:
      the Class of the infrastructure type identified by the given ComponentIdentifier.