Examples of RepositoryListenerImpl


Examples of org.apache.axis2.deployment.listener.RepositoryListenerImpl

            throw new DeploymentException(
                    Messages.getMessage(DeploymentErrorMsgs.PATH_TO_CONFIG_CANNOT_BE_NULL));
        }

        File tempfile = new File(engineConfigName);
        RepositoryListenerImpl repoListener;

        try {
            InputStream in = new FileInputStream(tempfile);

            axisConfig = createEngineConfig();

            AxisConfigBuilder builder = new AxisConfigBuilder(in, this, axisConfig);

            builder.populateConfig();
            axisConfig.setPhasesinfo(phasesinfo);

            // setting the CLs
            setClassLoaders(axis2repository);
        } catch (FileNotFoundException e) {
            throw new DeploymentException(e);
        }

        setDeploymentFeatures();
        repoListener = new RepositoryListenerImpl(axis2repository, this);

        try {
            axisConfig.setRepository(axis2repository);
            validateSystemPredefinedPhases();
            engageModules();
        } catch (AxisFault axisFault) {
            log.info(Messages.getMessage(DeploymentErrorMsgs.MODULE_VALIDATION_FAILED,
                    axisFault.getMessage()));

            throw new DeploymentException(axisFault);
        }

        repoListener.checkServices();

        if (hotDeployment) {
            startSearch(repoListener);
        }
View Full Code Here

Examples of org.apache.axis2.deployment.listener.RepositoryListenerImpl

        InputStream in;

        axis2repository = clientHome;

        boolean isRepositoryExist = false;
        RepositoryListenerImpl repoListener = null;

        if (!((clientHome == null) || "".equals(clientHome.trim()))) {
            checkClientHome(clientHome);
            isRepositoryExist = true;

            try {
                File tempfile = new File(engineConfigName);

                in = new FileInputStream(tempfile);
            } catch (FileNotFoundException e) {
                throw new DeploymentException(e);
            }
        } else {
            ClassLoader cl = Thread.currentThread().getContextClassLoader();

            in = cl.getResourceAsStream(AXIS2_CONFIGURATION_RESOURCE);

            if (in == null) {
                throw new DeploymentException(
                        Messages.getMessage(DeploymentErrorMsgs.CONFIG_NOT_FOUND));
            }
        }

        axisConfig = createEngineConfig();

        AxisConfigBuilder builder = new AxisConfigBuilder(in, this, axisConfig);

        axisConfig.setPhasesinfo(phasesinfo);
        builder.populateConfig();

        if (isRepositoryExist) {
            hotDeployment = false;
            hotUpdate = false;

            // setting CLs
            setClassLoaders(axis2repository);
            repoListener = new RepositoryListenerImpl(axis2repository, this);
        }

        try {
            axisConfig.setRepository(axis2repository);
            validateSystemPredefinedPhases();
            engageModules();
        } catch (AxisFault axisFault) {
            log.info(Messages.getMessage(DeploymentErrorMsgs.MODULE_VALIDATION_FAILED,
                    axisFault.getMessage()));

            throw new DeploymentException(axisFault);
        }

        if (repoListener != null) {
            repoListener.checkServices();
        }

        return axisConfig;
    }
View Full Code Here

Examples of org.apache.axis2.deployment.listener.RepositoryListenerImpl

        }
        setDeploymentFeatures();
        if (hotDeployment) {
            startSearch(this);
        } else {
            new RepositoryListenerImpl(folderName, this);
        }
        try {
            ((AxisConfigurationImpl) axisConfig).setRepository(axis2repository);
            validateSystemPredefinedPhases();
            ((AxisConfigurationImpl) axisConfig).setPhasesinfo(phasesinfo);
View Full Code Here

Examples of org.apache.axis2.deployment.listener.RepositoryListenerImpl

//            parser.processGlobalConfig(((AxisConfigurationImpl) axisConfig),
//                    AXIS2CONFIG);
        if (isRepositoryExist) {
            hotDeployment = false;
            hotUpdate = false;
            new RepositoryListenerImpl(folderName, this);
        }
        try {
            ((AxisConfigurationImpl) axisConfig).setRepository(axis2repository);
            ((AxisConfigurationImpl) axisConfig).setPhasesinfo(phasesinfo);
            engageModules();
View Full Code Here

Examples of org.apache.axis2.deployment.listener.RepositoryListenerImpl

    /**
     * Creates a new scheduler task.
     */

    public SchedulerTask(DeploymentEngine deploy_engine, String folderName ) {
        wsListener = new RepositoryListenerImpl(folderName, deploy_engine);
    }
View Full Code Here

Examples of org.apache.axis2.deployment.listener.RepositoryListenerImpl

    public AxisConfiguration load() throws DeploymentException {
        if (engineConfigName == null) {
            throw new DeploymentException(Messages.getMessage(DeploymentErrorMsgs.PATH_TO_CONFIG_CAN_NOT_B_NULL));
        }
        File tempfile = new File(engineConfigName);
        RepositoryListenerImpl repoListener;
        try {
            InputStream in = new FileInputStream(tempfile);
            axisConfig = createEngineConfig();
            AxisConfigBuilder builder = new AxisConfigBuilder(in, this, axisConfig);
            builder.populateConfig();
            axisConfig.setPhasesinfo(phasesinfo);
            //setting the CLs
            setClassLoaders(repository);
        } catch (FileNotFoundException e) {
            throw new DeploymentException(e);
        }
        setDeploymentFeatures();
        repoListener = new RepositoryListenerImpl(folderName, this);
        try {
            axisConfig.setRepository(axis2repository);
            validateSystemPredefinedPhases();
            engageModules();
        } catch (AxisFault axisFault) {
            log.info(Messages.getMessage(DeploymentErrorMsgs.MODULE_VAL_FAILED, axisFault.getMessage()));
            throw new DeploymentException(axisFault);
        }
        repoListener.checkServices();
        if (hotDeployment) {
            startSearch(repoListener);
        }
        return axisConfig;
    }
View Full Code Here

Examples of org.apache.axis2.deployment.listener.RepositoryListenerImpl

    public AxisConfiguration loadClient(String clientHome) throws DeploymentException {
        InputStream in;
        axis2repository = clientHome;
        boolean isRepositoryExist = false;
        RepositoryListenerImpl repoListener = null;
        if (!(clientHome == null || clientHome.trim().equals(""))) {
            checkClientHome(clientHome);
            isRepositoryExist = true;
            try {
                File tempfile = new File(engineConfigName);
                in = new FileInputStream(tempfile);
            } catch (FileNotFoundException e) {
                throw new DeploymentException(e);
            }
        } else {
            ClassLoader cl = Thread.currentThread().getContextClassLoader();
            in = cl.getResourceAsStream(AXIS2_CONFIGURATION_RESOURCE);
            if (in == null) {
                throw new DeploymentException(Messages.getMessage(DeploymentErrorMsgs.CONFIG_NOT_FOUND));
            }
        }
        axisConfig = createEngineConfig();
        AxisConfigBuilder builder = new AxisConfigBuilder(in, this, axisConfig);
        axisConfig.setPhasesinfo(phasesinfo);
        builder.populateConfig();
        if (isRepositoryExist) {
            hotDeployment = false;
            hotUpdate = false;
            //setting CLs
            setClassLoaders(repository);
            repoListener = new RepositoryListenerImpl(folderName, this);
        }
        try {
            axisConfig.setRepository(axis2repository);
            validateSystemPredefinedPhases();
            engageModules();
        } catch (AxisFault axisFault) {
            log.info(Messages.getMessage(DeploymentErrorMsgs.MODULE_VAL_FAILED, axisFault.getMessage()));
            throw new DeploymentException(axisFault);
        }
        if (repoListener != null) {
            repoListener.checkServices();
        }
        return axisConfig;
    }
View Full Code Here

Examples of org.apache.axis2.deployment.listener.RepositoryListenerImpl

        }
        setDeploymentFeatures();
        if (hotDeployment) {
            startSearch(this);
        } else {
            new RepositoryListenerImpl(folderName, this);
        }
        try {
            engagdeModules();
            validateSystemPredefinedPhases();
        } catch (AxisFault axisFault) {
View Full Code Here

Examples of org.apache.axis2.deployment.listener.RepositoryListenerImpl

            throw new DeploymentException(e);
        }
        if (isRepositoryExist) {
            hotDeployment = false;
            hotUpdate = false;
            new RepositoryListenerImpl(folderName, this);
            try {
                engagdeModules();
            } catch (AxisFault axisFault) {
                log.info("Module validation failed" + axisFault.getMessage());
                throw new DeploymentException(axisFault);
View Full Code Here

Examples of org.apache.axis2.deployment.listener.RepositoryListenerImpl

    /**
     * Creates a new scheduler task.
     */

    public SchedulerTask(DeploymentEngine deploy_engine, String folderName) {
        wsListener = new RepositoryListenerImpl(folderName, deploy_engine);
    }
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.