public void setValue(Interceptor interceptor, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("interceptor-class")) { interceptor.setInterceptorClass(getValue(localName, value)); } }
/** * Called when a child element with simple content is read for DD. */ public void setValue(EntityEnterpriseBean ejb, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (!isEjbParentName(ejb, localName, value)) { if (localName.equals("persistence-type")) { ejb.setPersistenceType(getValue(localName, value)); } } }
public Object newChild(MessageDrivenBean parent, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { Object child = newEjbChild(parent, localName); if (child != null) return child; child = newEjbHasInterceptorsChild(parent, localName); if (child != null) return child; if (localName.equals("message-driven-destination")) { child = new MessageDrivenDestination(); } else if (localName.equals("activation-config")) { child = new ActivationConfig(); } return child; }
public static EjbJarDD parse(URL ddResource) throws JBossXBException, IOException { ObjectModelFactory factory = null; Unmarshaller unmarshaller = null; EjbJarDD dd = null; if (ddResource != null) { log.debug("found ejb-jar.xml " + ddResource); factory = new EjbJarDDObjectFactory(); UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance(); unmarshaller = unmarshallerFactory.newUnmarshaller(); unmarshaller.setEntityResolver(new JBossEntityResolver()); unmarshaller.setNamespaceAware(true); unmarshaller.setSchemaValidation(true); unmarshaller.setValidation(true); dd = (EjbJarDD)unmarshaller.unmarshal(ddResource.openStream(), factory, null); } return dd; }
/** * Called when parsing of a new element started. */ public Object newChild(EntityEnterpriseBean parent, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { Object child = null; child = newEjbChild(parent, localName); if (child == null) { if (localName.equals("security-role-ref")) { child = new SecurityRoleRef(); } else if (localName.equals("cmp-field")) { child = new CmpField(); } else if (localName.equals("query")) { child = new Query(); } } return child; }
public Object newChild(Interceptor interceptor, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { Object child = null; if ((child = this.newEnvRefGroupChild(localName)) != null) return child; if (localName.equals("around-invoke")) { return new Method(); } else if (localName.equals("post-construct")) { return new Method(); } else if (localName.equals("pre-destroy")) { return new Method(); } else if (localName.equals("post-activate")) { return new Method(); } else if (localName.equals("pre-passivate")) { return new Method(); } return child; }
public Object newChild(MessageDrivenBean parent, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { Object child = newEjbChild(parent, localName); if (child != null) return child; child = newEjbHasInterceptorsChild(parent, localName); if (child != null) return child; if (localName.equals("message-driven-destination")) { child = new MessageDrivenDestination(); } else if (localName.equals("activation-config")) { child = new ActivationConfig(); } return child; }
public static EjbJarDD parse(URL ddResource) throws JBossXBException, IOException { ObjectModelFactory factory = null; Unmarshaller unmarshaller = null; EjbJarDD dd = null; if (ddResource != null) { log.debug("found ejb-jar.xml " + ddResource); factory = new EjbJarDDObjectFactory(); UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance(); unmarshaller = unmarshallerFactory.newUnmarshaller(); unmarshaller.setEntityResolver(new JBossEntityResolver()); unmarshaller.setNamespaceAware(true); unmarshaller.setSchemaValidation(true); unmarshaller.setValidation(true); dd = (EjbJarDD)unmarshaller.unmarshal(ddResource.openStream(), factory, null); } return dd; }
/** * Called when parsing of a new element started. */ public Object newChild(EntityEnterpriseBean parent, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { Object child = null; child = newEjbChild(parent, localName); if (child == null) { if (localName.equals("security-role-ref")) { child = new SecurityRoleRef(); } else if (localName.equals("cmp-field")) { child = new CmpField(); } else if (localName.equals("query")) { child = new Query(); } } return child; }
public Object newChild(Interceptor interceptor, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs) { Object child = null; if ((child = this.newEnvRefGroupChild(localName)) != null) return child; if (localName.equals("around-invoke")) { return new Method(); } else if (localName.equals("post-construct")) { return new Method(); } else if (localName.equals("pre-destroy")) { return new Method(); } else if (localName.equals("post-activate")) { return new Method(); } else if (localName.equals("pre-passivate")) { return new Method(); } return child; }
public void setValue(InterceptorOrder order, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("interceptor-class")) { order.addInterceptorClass(getValue(localName, value)); } }
/** * Called when a child element with simple content is read for DD. */ public void setValue(EntityEnterpriseBean ejb, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (!isEjbParentName(ejb, localName, value)) { if (localName.equals("persistence-type")) { ejb.setPersistenceType(getValue(localName, value)); } } }
Object child = newEjbChild(parent, localName); if (child != null) return child; child = newEjbHasInterceptorsChild(parent, localName); if (child != null) return child;
/** * Called when a child element with simple content is read for DD. */ public void setValue(RemoveMethod dd, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("retain-if-exception")) { dd.setRetainIfException(Boolean.parseBoolean(getValue(localName, value))); } }
/** * Called when a child element with simple content is read for DD. */ public void setValue(SessionEnterpriseBean ejb, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (!isEjbParentName(ejb, localName, value)) { if (localName.equals("session-type")) { ejb.setSessionType(getValue(localName, value)); } else if (localName.equals("transaction-type")) { ejb.setTransactionManagementType(getValue(localName, value)); } } }
Object child = newEjbChild(parent, localName); if (child != null) return child; child = newEjbHasInterceptorsChild(parent, localName); if (child != null) return child;
/** * Called when a child element with simple content is read for DD. */ public void setValue(EjbJarDD dd, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("display-name")) { dd.setDisplayName(getValue(localName, value)); } }
/** * Called when a child element with simple content is read for DD. */ public void setValue(SessionEnterpriseBean ejb, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (!isEjbParentName(ejb, localName, value)) { if (localName.equals("session-type")) { ejb.setSessionType(getValue(localName, value)); } else if (localName.equals("transaction-type")) { ejb.setTransactionManagementType(getValue(localName, value)); } } }
/** * Called when a child element with simple content is read for DD. */ public void setValue(EjbRelation relation, UnmarshallingContext navigator, String namespaceURI, String localName, String value) { if (localName.equals("ejb-relation-name")) { relation.setEjbRelationName(getValue(localName, value)); } }
if (!isEjbParentName(ejb, localName, value)) ejb.setAcknowledgeMode(getValue(localName, value)); ejb.setTransactionType(getValue(localName, value)); ejb.setMessagingType(getValue(localName, value)); ejb.setMessageDestinationLink(getValue(localName, value)); destination.setDestinationType(getValue(localName, value));