private void loadOtherDirectories() { for (Map.Entry<String, Map<String, Deployer>> entry : deploymentEngine.getDeployers().entrySet()) { String directory = entry.getKey(); Map<String, Deployer> extensionMap = entry.getValue(); for (String extension : extensionMap.keySet()) { File dirToSearch = new File(directory); if (!dirToSearch.isAbsolute()) { dirToSearch = new File(deploymentEngine.getRepositoryDir(), directory); } findFileForGivenDirectory(dirToSearch, extension, directory); } } }
private void loadOtherDirectories() { for (Map.Entry<String, Map<String, Deployer>> entry : deploymentEngine.getDeployers().entrySet()) { String directory = entry.getKey(); Map<String, Deployer> extensionMap = entry.getValue(); for (String extension : extensionMap.keySet()) { File dirToSearch = new File(directory); if (!dirToSearch.isAbsolute()) { dirToSearch = new File(deploymentEngine.getRepositoryDir(), directory); } findFileForGivenDirectory(dirToSearch, extension, directory); } } }
/** * The mediation library deployer will handling the process of deploying the * libararyArtifacts, this is required since the library specific artifacts * has to be initialized priorly for the cases like connectors * */ private void deployMediationLibraryArtifacts() { if (configurationContext == null || synapseConfiguration == null) { return; } DeploymentEngine deploymentEngine = (DeploymentEngine) configurationContext .getAxisConfiguration().getConfigurator(); String libsPath = deploymentEngine.getRepositoryDir().getPath() + File.separator + "synapse-libs"; deploymentEngine.addDeployer(new LibraryArtifactDeployer(), libsPath, "zip"); }