private static void addModuleService(ConfigurationContext configCtx) throws AxisFault { AxisConfiguration axisConfig = configCtx.getAxisConfiguration(); HashMap modules = axisConfig.getModules(); if (modules != null && modules.size() > 0) { Iterator mpduleItr = modules.values().iterator(); while (mpduleItr.hasNext()) { AxisModule axisModule = (AxisModule) mpduleItr.next(); Utils.deployModuleServices(axisModule, configCtx); } } }
private static void addModuleService(ConfigurationContext configCtx) throws AxisFault { AxisConfiguration axisConfig = configCtx.getAxisConfiguration(); HashMap modules = axisConfig.getModules(); if (modules != null && modules.size() > 0) { Iterator mpduleItr = modules.values().iterator(); while (mpduleItr.hasNext()) { AxisModule axisModule = (AxisModule) mpduleItr.next(); Utils.deployModuleServices(axisModule, configCtx); } } }
public WSDLBasedPolicyProcessor(ConfigurationContext configctx) { AxisConfiguration axisConfiguration = configctx.getAxisConfiguration(); for (Iterator iterator = axisConfiguration.getModules().values() .iterator(); iterator.hasNext();) { AxisModule axisModule = (AxisModule) iterator.next(); String[] namespaces = axisModule.getSupportedPolicyNamespaces(); if (namespaces == null) { continue; } for (int i = 0; i < namespaces.length; i++) { ArrayList moduleList = null; Object obj = ns2modules.get(namespaces[i]); if (obj == null) { moduleList = new ArrayList(5); ns2modules.put(namespaces[i], moduleList); } else { moduleList = (ArrayList) obj; } moduleList.add(axisModule); } } }
public WSDLBasedPolicyProcessor(ConfigurationContext configctx) { AxisConfiguration axisConfiguration = configctx.getAxisConfiguration(); for (Iterator iterator = axisConfiguration.getModules().values() .iterator(); iterator.hasNext();) { AxisModule axisModule = (AxisModule) iterator.next(); String[] namespaces = axisModule.getSupportedPolicyNamespaces(); if (namespaces == null) { continue; } for (int i = 0; i < namespaces.length; i++) { ArrayList moduleList = null; Object obj = ns2modules.get(namespaces[i]); if (obj == null) { moduleList = new ArrayList(5); ns2modules.put(namespaces[i], moduleList); } else { moduleList = (ArrayList) obj; } moduleList.add(axisModule); } } }
public static void init(AxisConfiguration configuration) { classLoaders.put("system", configuration.getSystemClassLoader()); classLoaders.put("axis2", ClassLoaderUtil.class.getClassLoader()); for (Iterator iter = configuration.getServiceGroups(); iter.hasNext(); ) { AxisServiceGroup group = (AxisServiceGroup) iter.next(); ClassLoader serviceGroupClassLoader = group.getServiceGroupClassLoader(); if (serviceGroupClassLoader != null) { classLoaders.put(getServiceGroupMapKey(group), serviceGroupClassLoader); } } for (Object obj : configuration.getModules().values()) { AxisModule module = (AxisModule) obj; ClassLoader moduleClassLoader = module.getModuleClassLoader(); if (moduleClassLoader != null) { classLoaders.put(getModuleMapKey(module), moduleClassLoader); } } }
public static void init(AxisConfiguration configuration) { classLoaders.put("system", configuration.getSystemClassLoader()); classLoaders.put("axis2", ClassLoaderUtil.class.getClassLoader()); for (Iterator iter = configuration.getServiceGroups(); iter.hasNext(); ) { AxisServiceGroup group = (AxisServiceGroup) iter.next(); ClassLoader serviceGroupClassLoader = group.getServiceGroupClassLoader(); if (serviceGroupClassLoader != null) { classLoaders.put(getServiceGroupMapKey(group), serviceGroupClassLoader); } } for (Object obj : configuration.getModules().values()) { AxisModule module = (AxisModule) obj; ClassLoader moduleClassLoader = module.getModuleClassLoader(); if (moduleClassLoader != null) { classLoaders.put(getModuleMapKey(module), moduleClassLoader); } } }
HashMap modules = configuration.getModules(); Collection col = modules.values(); Map faultyModule = new HashMap();
HashMap modules = configuration.getModules(); Collection col = modules.values(); Map faultyModule = new HashMap();
org.apache.axis2.util.Utils.calculateDefaultModuleVersion(axisConfig.getModules(), axisConfig); axisConfig.validateSystemPredefinedPhases();
org.apache.axis2.util.Utils.calculateDefaultModuleVersion(axisConfig.getModules(), axisConfig); axisConfig.validateSystemPredefinedPhases();
public void loadRepository(String repoDir) throws DeploymentException { File axisRepo = new File(repoDir); if (!axisRepo.exists()) { throw new DeploymentException( Messages.getMessage("cannotfindrepo", repoDir)); } setDeploymentFeatures(); prepareRepository(repoDir); // setting the CLs setClassLoaders(repoDir); repoListener = new RepositoryListener(this, false); org.apache.axis2.util.Utils .calculateDefaultModuleVersion(axisConfig.getModules(), axisConfig); try { try { axisConfig.setRepository(axisRepo.toURI().toURL()); } catch (MalformedURLException e) { log.info(e.getMessage()); } axisConfig.validateSystemPredefinedPhases(); } catch (AxisFault axisFault) { throw new DeploymentException(axisFault); } }
public void loadRepository(String repoDir) throws DeploymentException { File axisRepo = new File(repoDir); if (!axisRepo.exists()) { throw new DeploymentException( Messages.getMessage("cannotfindrepo", repoDir)); } setDeploymentFeatures(); prepareRepository(repoDir); // setting the CLs setClassLoaders(repoDir); repoListener = new RepositoryListener(this, false); org.apache.axis2.util.Utils .calculateDefaultModuleVersion(axisConfig.getModules(), axisConfig); try { try { axisConfig.setRepository(axisRepo.toURI().toURL()); } catch (MalformedURLException e) { log.info(e.getMessage()); } axisConfig.validateSystemPredefinedPhases(); } catch (AxisFault axisFault) { throw new DeploymentException(axisFault); } }
for (Iterator iterator = axisConfiguration.getModules().values() .iterator(); iterator.hasNext();) { AxisModule axisModule = (AxisModule)iterator.next();
public void loadFromClassPath() throws DeploymentException { //loading modules from the classpath new RepositoryListener(this, true); org.apache.axis2.util.Utils.calculateDefaultModuleVersion( axisConfig.getModules(), axisConfig); axisConfig.validateSystemPredefinedPhases(); try { engageModules(); } catch (AxisFault axisFault) { log.info(Messages.getMessage(DeploymentErrorMsgs.MODULE_VALIDATION_FAILED, axisFault.getMessage())); throw new DeploymentException(axisFault); } }
public void loadFromClassPath() throws DeploymentException { //loading modules from the classpath new RepositoryListener(this, true); org.apache.axis2.util.Utils.calculateDefaultModuleVersion( axisConfig.getModules(), axisConfig); axisConfig.validateSystemPredefinedPhases(); try { engageModules(); } catch (AxisFault axisFault) { log.info(Messages.getMessage(DeploymentErrorMsgs.MODULE_VALIDATION_FAILED, axisFault.getMessage())); throw new DeploymentException(axisFault); } }
ArrayList moduleList = new ArrayList(); for (Iterator moduleIter = getAxisConfig().getModules().values().iterator(); moduleIter.hasNext();) { AxisModule axisModule = (AxisModule) moduleIter.next();
org.apache.axis2.util.Utils.calculateDefaultModuleVersion(axisConfiguration.getModules(), axisConfiguration); axisConfiguration.validateSystemPredefinedPhases();
HashMap modules = axisConfiguration.getModules(); if (log.isDebugEnabled()) { log.debug("Modules to be shutdown from axisConfiguration: " + modules);
org.apache.axis2.util.Utils.calculateDefaultModuleVersion(axisConfiguration.getModules(), axisConfiguration); axisConfiguration.validateSystemPredefinedPhases();
configurationContext.getAxisConfiguration().getModules(); for (AxisModule mod : moduleMap.values()) { if (mod.getModule() != null && !"synapse".equals(mod.getName())) {