Skip to content

Instantly share code, notes, and snippets.

View injeniero's full-sized avatar

Simon Paredes injeniero

View GitHub Profile
@injeniero
injeniero / RequestScope.java
Created February 14, 2017 19:45
Dispose managed objects in reverse creation order
/**
* Implementation of the request scope instance.
*/
public static final class Instance {
/**
* A map of injectable instances in this scope.
*/
private final Map<ActiveDescriptor<?>, Object> store;