Skip to content

Commit

Permalink
Do not use singletons for generators
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Feb 21, 2024
1 parent 58ef19c commit a350566
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
*/

import javax.inject.Named;
import javax.inject.Singleton;

import java.io.IOException;
import java.io.Writer;
Expand All @@ -43,7 +42,6 @@
import org.codehaus.plexus.util.io.CachingWriter;

@Named("velocity")
@Singleton
public class VelocityGenerator extends AbstractModelloGenerator {
public static final String VELOCITY_BASEDIR = "modello.velocity.basedir";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/

import javax.inject.Named;
import javax.inject.Singleton;

import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -68,7 +67,6 @@
* @author <a href="mailto:emmanuel@venisse.net">Emmanuel Venisse</a>
*/
@Named("xdoc")
@Singleton
public class XdocGenerator extends AbstractXmlGenerator {
private static final VersionRange DEFAULT_VERSION_RANGE = new VersionRange("0.0.0+");

Expand Down

0 comments on commit a350566

Please sign in to comment.