public interface TwoPhaseResourceTransformer
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasTwoPhaseProperties()
Allows a transformer to decide whether it has enough data to run an alternate transformation strategy
using the data loaded when
loadTwoPhaseProperties(ResourceLocation, Function) was called. |
void |
loadTwoPhaseProperties(com.atlassian.plugin.elements.ResourceLocation resourceLocation,
Function<String,InputStream> loadFromFile)
For a given file to be transformed, find and load any build-time metadata associated with it.
|
void loadTwoPhaseProperties(com.atlassian.plugin.elements.ResourceLocation resourceLocation,
Function<String,InputStream> loadFromFile)
resourceLocation - the locality of a resource within a classpath (e.g., plugin, application container, etc.)loadFromFile - a function that can take a relative filepath and return an inputstream for the contents at that filepath.
this function should be locked to an appropriate classpath.boolean hasTwoPhaseProperties()
loadTwoPhaseProperties(ResourceLocation, Function) was called.Copyright © 2024 Atlassian. All rights reserved.