What Design Pattern is this?

Posted by 01 on Stack Overflow See other posts from Stack Overflow or by 01
Published on 2010-05-25T11:17:52Z Indexed on 2010/05/25 11:21 UTC
Read the original article Hit count: 164

I know that everything we do in programming can be described as design pattern(even abstract method has design pattern called template method)

public class Guicer extends AbstractModule {
    private static Injector injector = Guice.createInjector(new Guicer());

    public static void setInjector(Injector injector) {
        Guicer.injector = injector;
    }

    public static  T getInstance(Class c) {
        return injector.getInstance(c);
    }

    @Override
    protected void configure() {

    }
}

What design patterns are used in this code?

© Stack Overflow or respective owner

Related posts about java

Related posts about design-patterns