Skip to content

Commit 8bd2d83

Browse files
authored
Fix for #366 (#417)
The 2.2.0 does not fixes my issue, this is. While the generators are made prototypes (non singletons), the core components (managers) are still singletons, and the fact they inject Map<String, Generator> still makes generators singletons...
1 parent 8804652 commit 8bd2d83

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

modello-core/src/main/java/org/codehaus/modello/core/DefaultGeneratorPluginManager.java

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

2525
import javax.inject.Inject;
2626
import javax.inject.Named;
27-
import javax.inject.Singleton;
2827

2928
import java.util.Map;
3029

@@ -36,7 +35,6 @@
3635
* @author <a href="mailto:[email protected]">Trygve Laugst&oslash;l</a>
3736
*/
3837
@Named
39-
@Singleton
4038
public class DefaultGeneratorPluginManager extends AbstractPluginManager<ModelloGenerator>
4139
implements GeneratorPluginManager {
4240

modello-core/src/main/java/org/codehaus/modello/core/DefaultMetadataPluginManager.java

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

2525
import javax.inject.Inject;
2626
import javax.inject.Named;
27-
import javax.inject.Singleton;
2827

2928
import java.util.Map;
3029

@@ -36,7 +35,6 @@
3635
* @author <a href="mailto:[email protected]">Trygve Laugst&oslash;l</a>
3736
*/
3837
@Named
39-
@Singleton
4038
public class DefaultMetadataPluginManager extends AbstractPluginManager<MetadataPlugin>
4139
implements MetadataPluginManager {
4240

modello-core/src/main/java/org/codehaus/modello/core/DefaultModelloCore.java

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

2525
import javax.inject.Inject;
2626
import javax.inject.Named;
27-
import javax.inject.Singleton;
2827

2928
import java.io.File;
3029
import java.io.IOException;
@@ -60,7 +59,6 @@
6059
* @author <a href="mailto:[email protected]">Emmanuel Venisse</a>
6160
*/
6261
@Named
63-
@Singleton
6462
public class DefaultModelloCore extends AbstractModelloCore {
6563

6664
@Inject

0 commit comments

Comments
 (0)