/** Create a default security configuration. * TransportConfig[integrity=supported, confidentiality=supported, * establish-trust-in-target=supported,establish-trust-in-client=supported, * detect-misordering=supported, detect-replay=supported] * AsContext[auth-method=USERNAME_PASSWORD, realm=default, required=false] * SasContext[caller-propagation=NONE] */ public IorSecurityConfigMetaData() { transportConfig = new TransportConfig(); asContext = new AsContext(); sasContext = new SasContext(); }
private static String generateNonNavigableCMRName(RelationshipRoleMetaData role) { RelationshipRoleMetaData relatedRole = role.getRelatedRoleMetaData(); return relatedRole.getEntityName() + "_" + relatedRole.getCMRFieldName(); }
/** Invokes getDocument(url, defaultValidateDTDs) * */ public static Document getDocument(URL url) throws DeploymentException { return getDocument(url, defaultValidateDTDs); }
/** * Gets the container jndi name used in the object name * * @return the jndi name suitable for use as the jndi name */ public String getContainerObjectNameJndiName() { return getHome() != null ? getJndiName() : getLocalJndiName(); }
/** * Macro to get the content of a unique child element. * * @param element The parent element. * @param tagName The name of the desired child. * @return The element content or null. */ public static String getUniqueChildContent(Element element, String tagName) { return getElementContent(getUniqueChild(element, tagName)); }
/** * Macro to get the content of an optional child element. * * @param element The parent element. * @param tagName The name of the desired child. * @return The element content or null. */ public static String getOptionalChildContent(Element element, String tagName) { return getElementContent(getOptionalChild(element, tagName)); }
/** * Get the resource name * * @return the resource name */ public String getResourceName() { String name = getName(); if (name == null) return getRefName(); return name; }
@Override public byte getMethodTransactionType(String methodName, Class[] params, InvocationType iface) { // A JMS MDB may only ever have one method if (isJMSMessagingType()) return getMethodTransactionType(); else return getMethodTransactionType(methodName, params); }
/** * Get the content of the given element. * * @param element The element to get the content for. * @return The content of the element or null. */ public static String getElementContent(final Element element) { return getElementContent(element, null); }
/** Get the xml file from the URL and parse it into a Document object. * Calls new XmlFileLoader(validateDTDs).getDocumentFromURL(url); * @param url the URL from which the xml doc is to be obtained. * @return Document */ public static Document getDocument(URL url, boolean validateDTDs) throws DeploymentException { XmlFileLoader loader = new XmlFileLoader(validateDTDs); return loader.getDocumentFromURL(url); }
public String getWsdlPublishLocationByName(String name) { return wmd.getWsdlPublishLocationByName(name); } };
/** * Get an attribute value of the given element. * * @param element The element to get the attribute value for. * @param attrName The attribute name * @return The attribute value or null. */ public static String getElementAttribute(final Element element, final String attrName) { return getElementAttribute(element, attrName, true); }
@Override public JBossMessageDrivenBeanMetaData getDelegate() { return (JBossMessageDrivenBeanMetaData) super.getDelegate(); }
/** * Create a new ApplicationMetaData.<p> * * FOR TESTING PURPOSES ONLY * * @param delegate the delegate * @throws IllegalArgumentException for a null delegate */ public ApplicationMetaData(EjbJarMetaData delegate) { this(wrap(delegate)); }
/** * Get the jndi name * * @return the jndi name */ public String getJNDIName() { return getJndiName(); }
/** * Get the URL from which this deployment unit was deployed * * @return The URL from which this Application was deployed. */ public URL getURL() { return appMetaData.getUrl(); }
/** * Resolve the resource adapter name * * @return the resource adapter name * @throws DeploymentException for any error */ protected String resolveResourceAdapterName() throws DeploymentException { return metaData.getResourceAdapterName(); }
/** Create a default security configuration. * TransportConfig[integrity=supported, confidentiality=supported, * establish-trust-in-target=supported,establish-trust-in-client=supported, * detect-misordering=supported, detect-replay=supported] * AsContext[auth-method=USERNAME_PASSWORD, realm=default, required=false] * SasContext[caller-propagation=NONE] */ public IorSecurityConfigMetaData() { transportConfig = new TransportConfig(); asContext = new AsContext(); sasContext = new SasContext(); }
@Override public JBossSessionBeanMetaData getDelegate() { return (JBossSessionBeanMetaData) super.getDelegate(); }
/** * Create a new ApplicationMetaData.<p> * * FOR TESTING PURPOSES ONLY * * @param delegate the delegate * @throws IllegalArgumentException for a null delegate */ public ApplicationMetaData(EjbJarMetaData delegate) { this(wrap(delegate)); }