/** * all sub-implementation of this class can use a dispatch table to map xml element to * method name on the descriptor class for setting the element value. * * @return the map with the element name as a key, the setter method as a value */ @Override protected Map getDispatchTable() { Map table = super.getDispatchTable(); table.put(RuntimeTagNames.JNDI_NAME, "setJndiName"); return table; }
/** * all sub-implementation of this class can use a dispatch table to map xml element to * method name on the descriptor class for setting the element value. * * @return the map with the element name as a key, the setter method as a value */ @Override protected Map getDispatchTable() { Map table = super.getDispatchTable(); table.put(RuntimeTagNames.JNDI_NAME, "setJndiName"); return table; }
/** * all sub-implementation of this class can use a dispatch table to map xml element to * method name on the descriptor class for setting the element value. * * @return the map with the element name as a key, the setter method as a value */ @Override protected Map getDispatchTable() { Map table = super.getDispatchTable(); table.put(RuntimeTagNames.JNDI_NAME, "setJndiName"); return table; }
/** * all sub-implementation of this class can use a dispatch table to map xml element to * method name on the descriptor class for setting the element value. * * @return the map with the element name as a key, the setter method as a value */ protected Map getDispatchTable() { Map table = super.getDispatchTable(); table.put(RuntimeTagNames.NAME, "setName"); table.put(RuntimeTagNames.PASSWORD, "setPassword"); return table; }
/** * all sub-implementation of this class can use a dispatch table to map xml element to * method name on the descriptor class for setting the element value. * * @return the map with the element name as a key, the setter method as a value */ protected Map getDispatchTable() { Map table = super.getDispatchTable(); table.put(RuntimeTagNames.EJB_REF_NAME, "setEjbRefName"); table.put(RuntimeTagNames.JNDI_NAME, "setJndiName"); return table; }
/** * all sub-implementation of this class can use a dispatch table to map xml element to * method name on the descriptor class for setting the element value. * * @return the map with the element name as a key, the setter method as a value */ protected Map getDispatchTable() { Map table = super.getDispatchTable(); table.put(RuntimeTagNames.NAME, "setName"); table.put(RuntimeTagNames.PASSWORD, "setPassword"); return table; }
/** * all sub-implementation of this class can use a dispatch table to map xml element to * method name on the descriptor class for setting the element value. * * @return the map with the element name as a key, the setter method as a value */ protected Map getDispatchTable() { Map table = super.getDispatchTable(); table.put(RuntimeTagNames.EJB_REF_NAME, "setEjbRefName"); table.put(RuntimeTagNames.JNDI_NAME, "setJndiName"); return table; }
/** * all sub-implementation of this class can use a dispatch table to map xml element to * method name on the descriptor class for setting the element value. * * @return the map with the element name as a key, the setter method as a value */ protected Map getDispatchTable() { Map table = super.getDispatchTable(); table.put(RuntimeTagNames.RESOURCE_ENV_REF_NAME, "setResourceEnvRefName"); table.put(RuntimeTagNames.JNDI_NAME, "setJndiName"); return table; }
/** * all sub-implementation of this class can use a dispatch table to map xml element to * method name on the descriptor class for setting the element value. * * @return the map with the element name as a key, the setter method as a value */ protected Map getDispatchTable() { Map table = super.getDispatchTable(); table.put(RuntimeTagNames.RES_REF_NAME, "setResRefName"); table.put(RuntimeTagNames.JNDI_NAME, "setJndiName"); return table; }
/** * all sub-implementation of this class can use a dispatch table to map xml element to * method name on the descriptor class for setting the element value. * * @return the map with the element name as a key, the setter method as a value */ protected Map getDispatchTable() { Map table = super.getDispatchTable(); table.put(RuntimeTagNames.RES_REF_NAME, "setResRefName"); table.put(RuntimeTagNames.JNDI_NAME, "setJndiName"); return table; }
/** * all sub-implementation of this class can use a dispatch table to map xml element to * method name on the descriptor class for setting the element value. * * @return the map with the element name as a key, the setter method as a value */ protected Map getDispatchTable() { Map table = super.getDispatchTable(); table.put(RuntimeTagNames.RESOURCE_ENV_REF_NAME, "setResourceEnvRefName"); table.put(RuntimeTagNames.JNDI_NAME, "setJndiName"); return table; }
@Override protected Map getDispatchTable() { Map table = super.getDispatchTable(); table.put(RuntimeTagNames.JNDI_NAME, "setJndiName"); table.put(RuntimeTagNames.CREATE_TABLES_AT_DEPLOY, "setCreateTablesAtDeploy"); table.put(RuntimeTagNames.DROP_TABLES_AT_UNDEPLOY, "setDropTablesAtUndeploy"); table.put(RuntimeTagNames.DATABASE_VENDOR_NAME, "setDatabaseVendorName"); return table; }
/** * all sub-implementation of this class can use a dispatch table to map xml element to * method name on the descriptor class for setting the element value. * * @return the map with the element name as a key, the setter method as a value */ protected Map getDispatchTable() { Map table = super.getDispatchTable(); table.put(RuntimeTagNames.JNDI_NAME, "setJndiName"); table.put(RuntimeTagNames.CREATE_TABLES_AT_DEPLOY, "setCreateTablesAtDeploy"); table.put(RuntimeTagNames.DROP_TABLES_AT_UNDEPLOY, "setDropTablesAtUndeploy"); table.put(RuntimeTagNames.DATABASE_VENDOR_NAME, "setDatabaseVendorName"); return table; }
/** * receives notification of the value for a particular tag * * @param element the xml element * @param value it's associated value */ public void setElementValue(XMLElement element, String value) { if (getDispatchTable().containsKey(element.getQName())) { super.setElementValue(element, value); } else { Object o = getDescriptor(); if (o instanceof RuntimeDescriptor) { RuntimeDescriptor rd = (RuntimeDescriptor) o; rd.setValue(element.getQName(), value); } else { DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.addDescriptorFailure", new Object[]{element.getQName() , value }); } } }
/** * receives notification of the value for a particular tag * * @param element the xml element * @param value it's associated value */ public void setElementValue(XMLElement element, String value) { if (getDispatchTable().containsKey(element.getQName())) { super.setElementValue(element, value); } else { Object o = getDescriptor(); if (o instanceof RuntimeDescriptor) { RuntimeDescriptor rd = (RuntimeDescriptor) o; rd.setValue(element.getQName(), value); } else { DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.addDescriptorFailure", new Object[]{element.getQName() , value }); } } }