问题 I am using Instance as a lazy / dynamic injector in a TomEE Java application, and I have noticed a memory leak in my application. This is a first for me, so it's actually surprising to see a memory leak warning that has been outlined in the Java EE Library : package javax.enterprise.inject; public interface Instance<T> extends Iterable<T>, Provider<T> { /** * Destroy the given Contextual Instance. * This is especially intended for {@link javax.enterprise.context.Dependent} scoped beans *