Java 类javax.enterprise.context.spi.AlterableContext 实例源码

项目:omakase    文件:IntegrationTests.java   
public void destroyJCRSession() {
    final AlterableContext requestContext = (AlterableContext) beanManager.getContext(RequestScoped.class);
    beanManager.getBeans(Session.class).stream().filter(bean -> bean != null).forEach(requestContext::destroy);
}