Create a gist now

Instantly share code, notes, and snippets.

anonymous /IoC.fx
Created Jun 1, 2010

What would you like to do?
public var registry: Registry;
public function init(): Void {
println("starting up IoC registry");
var builder: RegistryBuilder = new RegistryBuilder();
builder.add(InjectionTestModule.class);
registry = builder.build();
registry.performRegistryStartup();
FX.addShutdownAction(function(): Void {
println("cleaning IoC registry");
registry.cleanupThread();
registry.shutdown();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment