Skip to content

Instantly share code, notes, and snippets.

@jharting
Created October 22, 2014 15:55
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 jharting/97f94c89abddf9fd9f47 to your computer and use it in GitHub Desktop.
Save jharting/97f94c89abddf9fd9f47 to your computer and use it in GitHub Desktop.
event.beanBuilder().createWith((@Any Foo foo) -> new ConnectionImpl(foo)).qualifiers(DefaultLiteral.INSTANCE).scope(ApplicationScoped.class).named("connection").disposeWith((x) -> x.close());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment