Created
January 29, 2010 08:55
-
-
Save shimbaco/289570 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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