Interface ICleanMixinService
public interface ICleanMixinService
CleanMix extension methods for IMixinService instances
-
Method Summary
Modifier and TypeMethodDescriptionvoidacceptPhaseTransitioner(Consumer<MixinEnvironment.Phase> transitioner) Pass a phase transitioner based onMixinEnvironment.gotoPhase(MixinEnvironment.Phase)to allow clean services to be able to transition phases from within the service class.getResource(String name) Get a resource from the appropriate classloader, this is delegated via the service so that the service can choose the correct classloader from which to obtain the resource.getSourceId(URI source) Resolve a suitable string source identifier for theContainerHandleURIto take in
-
Method Details
-
getResource
Get a resource from the appropriate classloader, this is delegated via the service so that the service can choose the correct classloader from which to obtain the resource.- Parameters:
name- resource path- Returns:
- resource or null if resource not found
-
getSourceId
Resolve a suitable string source identifier for theContainerHandleURIto take in- Parameters:
source- uri path of source- Returns:
- suitable string source identifier or null if it cannot be resolved
-
acceptPhaseTransitioner
Pass a phase transitioner based onMixinEnvironment.gotoPhase(MixinEnvironment.Phase)to allow clean services to be able to transition phases from within the service class.- Parameters:
transitioner- method that consumes phases to transition environments
-