Class LocationContentAnnotator
java.lang.Object
com.atlassian.plugin.webresource.impl.annotators.ResourceContentAnnotator
com.atlassian.plugin.webresource.impl.annotators.LocationContentAnnotator
Add comment with information about the single resource included in batch.
- Since:
- 3.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbeforeResourceInBatch(LinkedHashSet<String> requiredResources, Resource resource, Map<String, String> params, OutputStream out) Called before the resource content is written in batch.inthashCode()Produce a hash for this instance.Methods inherited from class com.atlassian.plugin.webresource.impl.annotators.ResourceContentAnnotator
afterAllResourcesInBatch, afterResource, afterResourceInBatch, beforeAllResourcesInBatch, beforeResource
-
Constructor Details
-
LocationContentAnnotator
public LocationContentAnnotator()
-
-
Method Details
-
beforeResourceInBatch
public int beforeResourceInBatch(LinkedHashSet<String> requiredResources, Resource resource, Map<String, String> params, OutputStream out) throws IOExceptionDescription copied from class:ResourceContentAnnotatorCalled before the resource content is written in batch.- Overrides:
beforeResourceInBatchin classResourceContentAnnotator- Returns:
- amount of lines the annotator adds to the source, used for source map generation.
- Throws:
IOException- if there is a problem writing the annotation.
-
hashCode
public int hashCode()Description copied from class:ResourceContentAnnotatorProduce a hash for this instance. Should be stable across jvms.- Specified by:
hashCodein classResourceContentAnnotator
-