public void setValue(QName qName, ElementBinding element, Object owner, Object value) { AbstractParameterMetaData parameter = (AbstractParameterMetaData) owner; setStringValue(parameter, (StringValueMetaData)value); } }
protected BasicXMLDeployer createDeployer() { return new BasicXMLDeployer(kernel, defaultMode); }
protected void undeploy(URL url) { try { deployer.undeploy(url); } catch (Throwable t) { } } }
/** * Deploy a url * * @param url the deployment url * @throws Throwable for any error */ protected void deploy(URL url) throws Throwable { deployer.deploy(url); }
public synchronized void shutdown() { deployer.shutdown(); }
/** * Undeploy all */ protected void undeploy() { log.debug("Undeploying " + deployer.getDeploymentNames()); deployer.shutdown(); } }
public Object startElement(Object parent, QName name, ElementBinding element) { return new MapEntry(); } }
public void setValue(QName qName, ElementBinding element, Object owner, Object value) { AbstractPropertyMetaData property = (AbstractPropertyMetaData) owner; StringValueMetaData svmd = (StringValueMetaData) value; setStringValue(property, svmd); } }
public void setParent(Object parent, Object o, QName elementName, ElementBinding element, ElementBinding parentElement) { Holder holder = (Holder) parent; if (o instanceof ValueMetaData == false) o = new AbstractValueMetaData(o); holder.setValue(o); } }
public void add(Object parent, Object child, QName name) { AbstractValueMetaData avmd = new AbstractValueMetaData(child); super.add(parent, avmd, name); } }
public Object startElement(Object parent, QName name, ElementBinding element) { return new Holder(new AbstractDependencyValueMetaData()); }
protected void undeploy(URL url) { try { deployer.undeploy(url); } catch (Throwable t) { } } //----------------------------------------------------------------------------------------------------------
protected void deploy(URL url) throws Throwable { deployer.deploy(url); }
private static BasicXMLDeployer createDeployer() { return new BasicXMLDeployer(kernel, ControllerMode.AUTOMATIC); }
public synchronized void shutdown() { deployer.shutdown(); }
public Object startElement(Object parent, QName name, ElementBinding element) { return new MapEntry(); }
/** * Undeploy a url * * @param url the deployment url */ protected void undeploy(URL url) { try { deployer.undeploy(url); } catch (Throwable t) { log.warn("Error during undeployment: " + url, t); } }
protected void deploy(URL url) throws Throwable { deployer.deploy(url); }
public void run() { log.info("Shutting down"); deployer.shutdown(); } }
/** * Undeploy a url * * @param url the url to undeploy * @throws IllegalStateException if the url is unknown */ public void undeploy(final URL url) { if (url == null) throw new IllegalArgumentException("Null url"); undeploy(url.toString()); }