Skip to content

Commit

Permalink
field injection
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Dec 5, 2024
1 parent a43342c commit d9ac5b3
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
*/
package org.apache.maven.reporting;

import javax.inject.Inject;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
Expand Down Expand Up @@ -170,24 +172,21 @@ public abstract class AbstractMavenReport extends AbstractMojo implements MavenM
@Parameter(property = "output.format")
protected String outputFormat;

@Inject
private PlexusContainer container;

/**
* SiteTool.
*/
@Inject
protected SiteTool siteTool;

/**
* Doxia Site Renderer component.
*/
@Inject
protected Renderer siteRenderer;

public AbstractMavenReport(PlexusContainer container, SiteTool siteTool, Renderer siteRenderer) {
this.container = container;
this.siteTool = siteTool;
this.siteRenderer = siteRenderer;
}

/**
* This method is called when the report generation is invoked directly as a standalone Mojo.
* This implementation is now marked {@code final} as it is not expected to be overridden:
Expand Down

0 comments on commit d9ac5b3

Please sign in to comment.