Skip to content

Commit

Permalink
Fix for #366 (#417)
Browse files Browse the repository at this point in the history
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...
  • Loading branch information
cstamas committed Feb 17, 2024
1 parent 8804652 commit 8bd2d83
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

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

import java.util.Map;

Expand All @@ -36,7 +35,6 @@
* @author <a href="mailto:trygvis@inamo.no">Trygve Laugst&oslash;l</a>
*/
@Named
@Singleton
public class DefaultGeneratorPluginManager extends AbstractPluginManager<ModelloGenerator>
implements GeneratorPluginManager {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

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

import java.util.Map;

Expand All @@ -36,7 +35,6 @@
* @author <a href="mailto:trygvis@inamo.no">Trygve Laugst&oslash;l</a>
*/
@Named
@Singleton
public class DefaultMetadataPluginManager extends AbstractPluginManager<MetadataPlugin>
implements MetadataPluginManager {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

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

import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -60,7 +59,6 @@
* @author <a href="mailto:evenisse@codehaus.org">Emmanuel Venisse</a>
*/
@Named
@Singleton
public class DefaultModelloCore extends AbstractModelloCore {

@Inject
Expand Down

0 comments on commit 8bd2d83

Please sign in to comment.