Class InfrastructureTypeUtils
java.lang.Object
org.mule.runtime.extension.api.loader.util.InfrastructureTypeUtils
Utilities for types considered of "Infrastructure".
- Since:
- 1.8
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresentation of an infrastructure type.static classRepresentation of an actionable infrastructure type. -
Method Summary
Modifier and TypeMethodDescriptiongetInfrastructureParameterName(org.mule.metadata.api.model.MetadataType fieldType) getInfrastructureType(String name) getMetadataTypeBasedInfrastructureType(Class<?> infrastructureTypeClass) getTypeFor(org.mule.runtime.api.component.ComponentIdentifier compId)
-
Method Details
-
getActionableInfrastructureTypes
public static Collection<InfrastructureTypeUtils.MetadataTypeBasedInfrastructureType> getActionableInfrastructureTypes()- Returns:
- all the infrastructure types available.
-
getMetadataTypeBasedInfrastructureType
public static InfrastructureTypeUtils.MetadataTypeBasedInfrastructureType getMetadataTypeBasedInfrastructureType(Class<?> infrastructureTypeClass) -
getInfrastructureType
- 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-MetadataTypeinfrastructure type.- Returns:
- infrastructure type name if the given
MetadataTypecorresponds to an infrastructure type.
-
getTypeFor
public static Optional<Class<?>> getTypeFor(org.mule.runtime.api.component.ComponentIdentifier compId) - Parameters:
compId-ComponentIdentifierof an infrastructure type.- Returns:
- the
Classof the infrastructure type identified by the givenComponentIdentifier.
-