@SuppressWarnings("unchecked") protected Object createDescriptor() { return RuntimeDescriptorFactory.getDescriptor(getXMLPath()); }
public static void writeJavaWebStartInfo(Node parent, JavaWebStartAccessDescriptor descr) { if (descr != null) { JavaWebStartAccessNode newNode = new JavaWebStartAccessNode(); newNode.writeDescriptor(parent, RuntimeTagNames.JAVA_WEB_START_ACCESS, descr); } } }
/** * @return a RootXMLNode responsible for handling the deployment * descriptors associated with this J2EE module * * @param the descriptor for which we need the node */ public RootXMLNode getRootXMLNode(Descriptor descriptor) { if (descriptor instanceof ApplicationClientDescriptor) { return new GFAppClientRuntimeNode((ApplicationClientDescriptor) descriptor); } return null; } }
/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param bundleDescriptor the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, ApplicationClientDescriptor bundleDescriptor) { Node appClient = super.writeDescriptor(parent, bundleDescriptor); RuntimeDescriptorNode.writeCommonComponentInfo(appClient, bundleDescriptor); RuntimeDescriptorNode.writeMessageDestinationInfo(appClient, bundleDescriptor); JavaWebStartAccessNode.writeJavaWebStartInfo(appClient, bundleDescriptor.getJavaWebStartAccessDescriptor()); return appClient; }
@Override public Node writeDescriptor(Node parent, String nodeName, ResourceReferenceDescriptor rrDescriptor) { Node rrNode = super.writeDescriptor(parent, nodeName, descriptor); appendTextChild(rrNode, TagNames.RESOURCE_REFERENCE_NAME, rrDescriptor.getName()); appendTextChild(rrNode, RuntimeTagNames.JNDI_NAME, rrDescriptor.getJndiName()); if (rrDescriptor.getResourcePrincipal() != null) { DefaultResourcePrincipalNode drpNode = new DefaultResourcePrincipalNode(); drpNode.writeDescriptor(rrNode, RuntimeTagNames.DEFAULT_RESOURCE_PRINCIPAL, rrDescriptor.getResourcePrincipal()); } return rrNode; }
/** * @return the descriptor instance to associate with this XMLNode */ public Object getDescriptor() { if (abstractDescriptor==null) { abstractDescriptor = RuntimeDescriptorFactory.getDescriptor(getXMLPath()); if (abstractDescriptor ==null) { return getParentNode().getDescriptor(); } } return abstractDescriptor; }
@Override public Map<String,Class> registerRuntimeBundle(final Map<String,String> publicIDToDTD, final Map<String, List<Class>> versionUpgrades) { final Map<String,Class> result = new HashMap<String,Class>(); result.put(AppClientRuntimeNode.registerBundle(publicIDToDTD), AppClientRuntimeNode.class); result.put(GFAppClientRuntimeNode.registerBundle(publicIDToDTD), GFAppClientRuntimeNode.class); return result; }
/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param node name * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, String nodeName, PersistenceManagerInUse descriptor) { Node pmInUse = super.writeDescriptor(parent, nodeName, descriptor); appendTextChild(pmInUse, RuntimeTagNames.PM_IDENTIFIER, descriptor.get_pm_identifier()); appendTextChild(pmInUse, RuntimeTagNames.PM_VERSION, descriptor.get_pm_version()); return pmInUse; } }
/** * @return a RootXMLNode responsible for handling the deployment * descriptors associated with this J2EE module * * @param the descriptor for which we need the node */ public RootXMLNode getRootXMLNode(Descriptor descriptor) { if (descriptor instanceof ApplicationClientDescriptor) { return new AppClientRuntimeNode((ApplicationClientDescriptor) descriptor); } return null; } }
/** * 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.REALM, "setRealm"); return table; }
/** * Adds a new DOL descriptor instance to the descriptor instance * associated with this XMLNode * * @param descriptor the new descriptor */ public void addDescriptor(Object newDescriptor) { if (newDescriptor instanceof EnvironmentProperty) { descriptor.addApplicationParam((ApplicationParam)newDescriptor); } else super.addDescriptor(newDescriptor); }
public RuntimeBundleNode(T descriptor) { this.descriptor = descriptor; Init(); }
/** * @return a RootXMLNode responsible for handling the deployment * descriptors associated with this J2EE module * * @param the descriptor for which we need the node */ public RootXMLNode getRootXMLNode(Descriptor descriptor) { if (descriptor instanceof EjbBundleDescriptor) { return new EjbBundleRuntimeNode((EjbBundleDescriptor) descriptor); } return null; } }
/** * @return a RootXMLNode responsible for handling the deployment * descriptors associated with this J2EE module * * @param the descriptor for which we need the node */ public RootXMLNode getRootXMLNode(Descriptor descriptor) { if (descriptor instanceof EjbBundleDescriptor) { return new GFEjbBundleRuntimeNode((EjbBundleDescriptor) descriptor); } return null; } }
public RuntimeBundleNode(T descriptor) { this.descriptor = descriptor; init(); }
/** Creates new CmpNode */ public PMDescriptorsNode() { registerElementHandler(new XMLElement(RuntimeTagNames.PM_DESCRIPTOR), PMDescriptorNode.class, "addPersistenceManager"); registerElementHandler(new XMLElement(RuntimeTagNames.PM_INUSE), PMInUseNode.class, "setPersistenceManagerInUse"); }
/** * write the descriptor class to a DOM tree and return it * * @param parent node for the DOM tree * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, ApplicationClientDescriptor bundleDescriptor) { Node appClient = super.writeDescriptor(parent, bundleDescriptor); RuntimeDescriptorNode.writeCommonComponentInfo(appClient, bundleDescriptor); RuntimeDescriptorNode.writeMessageDestinationInfo(appClient, bundleDescriptor); JavaWebStartAccessNode.writeJavaWebStartInfo(appClient, bundleDescriptor.getJavaWebStartAccessDescriptor()); return appClient; }
public static void writeJavaWebStartInfo(Node parent, JavaWebStartAccessDescriptor descr) { if (descr != null) { JavaWebStartAccessNode newNode = new JavaWebStartAccessNode(); newNode.writeDescriptor(parent, RuntimeTagNames.JAVA_WEB_START_ACCESS, descr); } } }
/** * @return a RootXMLNode responsible for handling the deployment * descriptors associated with this J2EE module * * @param the descriptor for which we need the node */ public RootXMLNode getRootXMLNode(Descriptor descriptor) { if (descriptor instanceof ApplicationClientDescriptor) { return new GFAppClientRuntimeNode((ApplicationClientDescriptor) descriptor); } return null; } }
/** * @return a RootXMLNode responsible for handling the deployment * descriptors associated with this J2EE module * * @param the descriptor for which we need the node */ public RootXMLNode getRootXMLNode(Descriptor descriptor) { if (descriptor instanceof ApplicationClientDescriptor) { return new AppClientRuntimeNode((ApplicationClientDescriptor) descriptor); } return null; } }