Skip to content

Commit

Permalink
Merge pull request #1176 from matsim-org/guiceWithoutMatsim
Browse files Browse the repository at this point in the history
some changes in guiceWithoutMatsim
  • Loading branch information
kainagel authored Oct 28, 2024
2 parents 526bc35 + a7ed1f5 commit d296d3c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
import com.google.inject.Guice;
import com.google.inject.Inject;
import com.google.inject.Injector;
import com.google.inject.multibindings.MapBinder;
import com.google.inject.multibindings.MultibinderBinding;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;

class PartOne{
private static final Logger log = LogManager.getLogger( PartOne.class ) ;
class BasicInjection{
private static final Logger log = LogManager.getLogger( BasicInjection.class ) ;

public static void main(String[] args){
Injector injector = Guice.createInjector( new AbstractModule(){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package org.matsim.codeexamples.guicewithoutmatsim;

import com.google.inject.Inject;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

class ConstructorInjection{
class ConventionalInjectionByConstructor{

private static final Logger log = LogManager.getLogger( org.matsim.codeexamples.guicewithoutmatsim.PartOne.class ) ;
private static final Logger log = LogManager.getLogger( BasicInjection.class ) ;

public static void main(String[] args){
Helper helper = new MyHelper1();
Expand Down

This file was deleted.

0 comments on commit d296d3c

Please sign in to comment.