Package org.apache.axis2.description

Examples of org.apache.axis2.description.AxisServiceGroup


        PhaseResolver phaseResolver = new PhaseResolver(this);
        phaseResolver.disengageModuleFromGlobalChains(module);

        Iterator<AxisServiceGroup> serviceGroups = getServiceGroups();
        while (serviceGroups.hasNext()) {
            AxisServiceGroup axisServiceGroup = serviceGroups.next();
            axisServiceGroup.disengageModule(module);
        }
    }
View Full Code Here


     * @throws AxisFault
     */
    public synchronized void removeService(String name) throws AxisFault {
        AxisService service = allServices.remove(name);
        if (service != null) {
            AxisServiceGroup serviceGroup = service.getAxisServiceGroup();
            serviceGroup.removeService(name);
            log.debug(Messages.getMessage("serviceremoved", name));
        }
    }
View Full Code Here

            throws DuplicateServiceGroupException, JarUploadException {

        AxisConfiguration axisConfig = getAxisConfig();

        // First lets filter for jar resources
        AxisServiceGroup serviceGroup = axisConfig.getServiceGroup(serviceGroupName);
        if (serviceGroup != null) {
            String msg = "Service group " + serviceGroupName + " already exists";
            log.error(msg);
            throw new DuplicateServiceGroupException(msg);
        }
View Full Code Here

        try {
            deploymentFileData.setClassLoader(deploymentFileData.getFile().isDirectory(),
                    axisConfig.getServiceClassLoader(),
                    (File) axisConfig.getParameterValue(
                            Constants.Configuration.ARTIFACTS_TEMP_DIR), true);
            AxisServiceGroup serviceGroup = new AxisServiceGroup(axisConfig);
            serviceGroup.setServiceGroupClassLoader(deploymentFileData.getClassLoader());

            serviceGroup.addParameter(CarbonConstants.FORCE_EXISTING_SERVICE_INIT, true);
            ServiceBuilder serviceBuilder = new ServiceBuilder(configurationContext,
                    serviceDeployerInformation);
            List<AxisService> servicesList = serviceBuilder.build(serviceGroup,
                    deploymentFileData);
View Full Code Here

        try {
            File file = new File(fileName);
            fileName = file.getName();

            fileName = DeploymentEngine.getAxisServiceName(fileName);
            AxisServiceGroup serviceGroup = axisConfig
                    .removeServiceGroup(fileName);
            configurationContext.removeServiceGroupContext(serviceGroup);
            if (log.isDebugEnabled()) {
                log.debug(Messages.getMessage("serviceremoved", fileName));
            }
View Full Code Here

    public void tearDown() throws Exception {
        super.tearDown();
    }

    public void testNewServiceGroupAddition() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("test");
        AxisService asv = new AxisService("testService");
        asvGroup.addService(asv);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);
        Resource re = pf.getServiceGroupPM().getServiceGroup("test");
        assertNotNull(re);
    }
View Full Code Here

        Resource re = pf.getServiceGroupPM().getServiceGroup("test");
        assertNotNull(re);
    }

    public void testSetServiceGroupProperty() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testGP");
        AxisService asv = new AxisService("testServiceGP");
        asvGroup.addService(asv);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);

        pf.getServiceGroupPM().setServiceGroupProperty(asvGroup, "name", "test");
        Resource re = pf.getServiceGroupPM().getServiceGroup("testGP");
        String value = re.getProperty("name");
View Full Code Here

        String value = re.getProperty("name");
        assertEquals("test", value);
    }

    public void testNewServiceAddition() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testServiceGroup");
        AxisService asv = new AxisService("testServiceAdd");
        asvGroup.addService(asv);
        String policyXML = "<wsp:Policy\n" +
                "   xmlns:sp=\"http://schemas.xmlsoap.org/ws/2005/07/securitypolicy\"\n" +
                "   xmlns:wsp=\"http://schemas.xmlsoap.org/ws/2004/09/policy\"\n" +
                "   xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\"\n" +
                "   wsu:Id=\"SecureMessagePolicy\" >\n" +
View Full Code Here

        String s = re.getProperty("policy.uuid");
        assertTrue(s.equals("SecureMessagePolicy"));
    }

    public void testServiceProperty() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testP");
        AxisService asv = new AxisService("testServiceP");
        asvGroup.addService(asv);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);
        pf.getServicePM().handleNewServiceAddition(asv);

        pf.getServicePM().setServiceProperty(asv, "key", "value");
        Resource re = pf.getServicePM().getService(asv);
View Full Code Here

        String prop = re.getProperty("key");
        assertEquals("value", prop);
    }

    public void testUpdateServiceGroupParameter() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testGUp");
        AxisService asv = new AxisService("testServiceGUp");
        asvGroup.addService(asv);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);

        Resource reOld = pf.getServiceGroupPM().getServiceGroup("testGUp");

        Parameter para = new Parameter();
View Full Code Here

TOP

Related Classes of org.apache.axis2.description.AxisServiceGroup

Copyright © 2018 www.massapicom. 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.