Skip to content

Instantly share code, notes, and snippets.

@shimbaco
Created January 29, 2010 08:55
Show Gist options
  • Save shimbaco/289570 to your computer and use it in GitHub Desktop.
Save shimbaco/289570 to your computer and use it in GitHub Desktop.
package pac;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import config.AppConfig;
public class Facade {
private Facade() {
}
public static String put(String key) {
AnnotationConfigApplicationContext acac = new AnnotationConfigApplicationContext();
acac.register(AppConfig.class);
AppConfig ac = acac.getBean(AppConfig.class);
Generater gen = ac.generaterBean();
return gen.generate(Database.find(key));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment