public JbossIdmIdentitySessionFactoryBinding() {
super("jboss-idm-identity-session-factory");
}
public Object parse(Element element, Parse parse, Parser parser) {
JbossIdmIdentitySessionFactoryDescriptor descriptor = new JbossIdmIdentitySessionFactoryDescriptor();
if (element.hasAttribute("jndi")) {
descriptor.setJndiName(element.getAttribute("jndi"));
} else if (element.hasAttribute("resource")) {
descriptor.setResource(element.getAttribute("resource"));
}
return descriptor;
}