Skip to content

Instantly share code, notes, and snippets.

Created June 1, 2010 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/420844 to your computer and use it in GitHub Desktop.
Save anonymous/420844 to your computer and use it in GitHub Desktop.
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