/** * Sets a context parameter. * @param name * @param value */ public void setContextParam(String name, Object value) { this.context.put(name, value); }
/** * @see org.overlord.sramp.atom.archive.expand.ArtifactFilter#setContext(org.overlord.sramp.atom.archive.expand.ZipToSrampArchiveContext) */ @Override public void setContext(ZipToSrampArchiveContext context) { syIndex = (SwitchYardAppIndex) context.get("switchyard.index"); //$NON-NLS-1$ if (syIndex == null) { File switchyardXmlFile = context.getJarEntry("META-INF/switchyard.xml"); //$NON-NLS-1$ if (switchyardXmlFile == null) { switchyardXmlFile = context.getJarEntry("WEB-INF/switchyard.xml"); //$NON-NLS-1$ } if (switchyardXmlFile != null) { syIndex = new SwitchYardAppIndex(switchyardXmlFile); context.put("switchyard.index", switchyardXmlFile); //$NON-NLS-1$ } } }