Skip to content

Commit a350566

Browse files
committed
Do not use singletons for generators
1 parent 58ef19c commit a350566

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

modello-plugins/modello-plugin-velocity/src/main/java/org/codehaus/modello/plugin/velocity/VelocityGenerator.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
*/
2121

2222
import javax.inject.Named;
23-
import javax.inject.Singleton;
2423

2524
import java.io.IOException;
2625
import java.io.Writer;
@@ -43,7 +42,6 @@
4342
import org.codehaus.plexus.util.io.CachingWriter;
4443

4544
@Named("velocity")
46-
@Singleton
4745
public class VelocityGenerator extends AbstractModelloGenerator {
4846
public static final String VELOCITY_BASEDIR = "modello.velocity.basedir";
4947

modello-plugins/modello-plugin-xdoc/src/main/java/org/codehaus/modello/plugin/xdoc/XdocGenerator.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
*/
2424

2525
import javax.inject.Named;
26-
import javax.inject.Singleton;
2726

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

0 commit comments

Comments
 (0)