Examples of AssemblerBeforeApplicationDestroyed


Examples of org.apache.openejb.assembler.classic.event.AssemblerBeforeApplicationDestroyed

    @Override
    public void stop() throws ServiceException {
        if (assembler != null) {
            SystemInstance.get().removeObserver(this);
            for (final AppInfo appInfo : new ArrayList<AppInfo>(deployedApplications)) {
                beforeApplicationDestroyed(new AssemblerBeforeApplicationDestroyed(appInfo));
            }
        }

        for (final DeployedService service : services) {
            undeployRestObject(service.address);
View Full Code Here

Examples of org.apache.openejb.assembler.classic.event.AssemblerBeforeApplicationDestroyed

    @Override
    public void stop() throws ServiceException {
        if (assembler != null) {
            SystemInstance.get().removeObserver(this);
            for (final AppInfo appInfo : new ArrayList<AppInfo>(deployedApplications)) {
                beforeApplicationDestroyed(new AssemblerBeforeApplicationDestroyed(appInfo));
            }
            assembler = null;
            if (SystemInstance.get().getComponent(WsService.class) == this) {
                SystemInstance.get().removeComponent(WsService.class);
            }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.event.AssemblerBeforeApplicationDestroyed

            final Context globalContext = containerSystem.getJNDIContext();
            final AppContext appContext = containerSystem.getAppContext(appInfo.appId);
            final ClassLoader classLoader = appContext.getClassLoader();

            SystemInstance.get().fireEvent(new AssemblerBeforeApplicationDestroyed(appInfo, appContext));

            if (null == appContext) {
                logger.warning("Application id '" + appInfo.appId + "' not found in: " + Arrays.toString(containerSystem.getAppContextKeys()));
                return;
            } else {
View Full Code Here

Examples of org.apache.openejb.assembler.classic.event.AssemblerBeforeApplicationDestroyed

    public synchronized void destroyApplication(final AppInfo appInfo) throws UndeployException {
        deployedApplications.remove(appInfo.path);
        logger.info("destroyApplication.start", appInfo.path);

        SystemInstance.get().fireEvent(new AssemblerBeforeApplicationDestroyed(appInfo));

        final Context globalContext = containerSystem.getJNDIContext();
        final AppContext appContext = containerSystem.getAppContext(appInfo.appId);

        if (null == appContext) {
View Full Code Here

Examples of org.apache.openejb.assembler.classic.event.AssemblerBeforeApplicationDestroyed

    @Override
    public void stop() throws ServiceException {
        if (assembler != null) {
            SystemInstance.get().removeObserver(this);
            for (final AppInfo appInfo : new ArrayList<AppInfo>(deployedApplications)) {
                beforeApplicationDestroyed(new AssemblerBeforeApplicationDestroyed(appInfo));
            }
        }

        for (final DeployedService service : services) {
            undeployRestObject(service.address);
View Full Code Here

Examples of org.apache.openejb.assembler.classic.event.AssemblerBeforeApplicationDestroyed

    @Override
    public void stop() throws ServiceException {
        if (assembler != null) {
            SystemInstance.get().removeObserver(this);
            for (final AppInfo appInfo : new ArrayList<AppInfo>(deployedApplications)) {
                beforeApplicationDestroyed(new AssemblerBeforeApplicationDestroyed(appInfo));
            }
            assembler = null;
            if (SystemInstance.get().getComponent(WsService.class) == this) {
                SystemInstance.get().removeComponent(WsService.class);
            }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.event.AssemblerBeforeApplicationDestroyed

    public void stop() throws ServiceException {
        if (assembler != null) {
            SystemInstance.get().removeObserver(this);
            for (AppInfo appInfo : new ArrayList<AppInfo>(deployedApplications)) {
                beforeApplicationDestroyed(new AssemblerBeforeApplicationDestroyed(appInfo));
            }
            assembler = null;
            if (SystemInstance.get().getComponent(WsService.class) == this) {
                SystemInstance.get().removeComponent(WsService.class);
            }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.event.AssemblerBeforeApplicationDestroyed

    public synchronized void destroyApplication(AppInfo appInfo) throws UndeployException {
        deployedApplications.remove(appInfo.path);
        logger.info("destroyApplication.start", appInfo.path);

        SystemInstance.get().fireEvent(new AssemblerBeforeApplicationDestroyed(appInfo));

        final AppContext appContext = containerSystem.getAppContext(appInfo.appId);

        if (null == appContext) {
            logger.warning("Application id '" + appInfo.appId + "' not found in: " + Arrays.toString(containerSystem.getAppContextKeys()));
View Full Code Here

Examples of org.apache.openejb.assembler.classic.event.AssemblerBeforeApplicationDestroyed

    @Override public void stop() throws ServiceException {
        if (assembler != null) {
            SystemInstance.get().removeObserver(this);
            for (AppInfo appInfo : new ArrayList<AppInfo>(deployedApplications)) {
                beforeApplicationDestroyed(new AssemblerBeforeApplicationDestroyed(appInfo));
            }
        }

        for (DeployedService service : services) {
            undeployRestObject(service.address);
View Full Code Here

Examples of org.apache.openejb.assembler.classic.event.AssemblerBeforeApplicationDestroyed

    @Override
    public void stop() throws ServiceException {
        if (assembler != null) {
            SystemInstance.get().removeObserver(this);
            for (final AppInfo appInfo : new ArrayList<>(deployedApplications)) {
                undeploy(new AssemblerBeforeApplicationDestroyed(appInfo, null));
            }
        }

        for (final DeployedService service : services) {
            undeployRestObject(service.address);
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.