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> T getInstance(Class<T> c) {
return injector.getInstance(c);
}
@Override
protected void configure() {
}
}
What design patterns are used in this code? Id like to call that class GuiceStateHolder, but im not sure about it.