Package org.apache.aries.blueprint.container

Examples of org.apache.aries.blueprint.container.BlueprintContainerImpl.destroy()


    protected void closeContainer(URL url, BlueprintContainer container) {
        if (container instanceof BlueprintContainerImpl) {
            BlueprintContainerImpl impl = (BlueprintContainerImpl)container;
            try {
                LOG.info("Closing container at path " + url + " container " + container);
                impl.destroy();
            } catch (Exception e) {
                LOG.info("Failed to close at " + url + " container " + container + ". " + e, e);
            }
        }
    }
View Full Code Here


    public void contextDestroyed(ServletContextEvent event) {
        ServletContext servletContext = event.getServletContext();
        Object container = servletContext.getAttribute(CONTAINER_ATTRIBUTE);
        if (container instanceof BlueprintContainerImpl) {
            BlueprintContainerImpl blueprint = (BlueprintContainerImpl) container;
            blueprint.destroy();
        }
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.