@Override public void addMessageDestinationReferenceDescriptor (MessageDestinationReferenceDescriptor messageDestRef) { messageDestRef.setReferringBundleDescriptor(this); messageDestReferences.add(messageDestRef); }
public void addMessageDestinationReferenceDescriptor (MessageDestinationReferenceDescriptor messageDestRef) { messageDestRef.setReferringBundleDescriptor(this); messageDestReferences.add(messageDestRef); }
public void addMessageDestinationReferenceDescriptor (MessageDestinationReferenceDescriptor messageDestRef) { messageDestRef.setReferringBundleDescriptor(this); messageDestReferences.add(messageDestRef); }
public void addMessageDestinationReferenceDescriptor (MessageDestinationReferenceDescriptor messageDestRef) { messageDestRef.setReferringBundleDescriptor(this); messageDestReferences.add(messageDestRef); }
public void addMessageDestinationReferenceDescriptor (MessageDestinationReferenceDescriptor messageDestRef) { messageDestRef.setReferringBundleDescriptor(this); this.getMessageDestinationReferenceDescriptors().add(messageDestRef); }
public void addMessageDestinationReferenceDescriptor (MessageDestinationReferenceDescriptor messageDestRef) { messageDestRef.setReferringBundleDescriptor(this); this.getMessageDestinationReferenceDescriptors().add(messageDestRef); }
public void addMessageDestinationReferenceDescriptor (MessageDestinationReferenceDescriptor messageDestRef) { messageDestRef.setReferringBundleDescriptor(this); getMessageDestinationReferenceDescriptors().add(messageDestRef); }
public void addMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestReference) { if( getBundleDescriptor() != null ) { msgDestReference.setReferringBundleDescriptor (getBundleDescriptor()); } this.getMessageDestinationReferenceDescriptors().add(msgDestReference); }
public void addMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestReference) { if( getBundleDescriptor() != null ) { msgDestReference.setReferringBundleDescriptor (getBundleDescriptor()); } this.getMessageDestinationReferenceDescriptors().add(msgDestReference); }
@Override public void addDescriptor(Object newDescriptor) { if (newDescriptor instanceof EjbReference) { if (DOLUtils.getDefaultLogger().isLoggable(Level.FINE)) { DOLUtils.getDefaultLogger().fine("Adding ejb ref " + newDescriptor); } getDescriptor().addEjbReferenceDescriptor( (EjbReference) newDescriptor); } else if( newDescriptor instanceof MessageDestinationReferenceDescriptor ) { MessageDestinationReferenceDescriptor msgDestRef = (MessageDestinationReferenceDescriptor) newDescriptor; EjbBundleDescriptor ejbBundle = (EjbBundleDescriptor) getParentNode().getDescriptor(); // EjbBundle might not be set yet on EjbInterceptor, so set it // explicitly here. msgDestRef.setReferringBundleDescriptor(ejbBundle); getDescriptor().addMessageDestinationReferenceDescriptor (msgDestRef); } else { super.addDescriptor(newDescriptor); } }
@Override public void addMessageDestinationReferenceDescriptor( MessageDestinationReferenceDescriptor messageDestRef) { try { MessageDestinationReferenceDescriptor existing = getMessageDestinationReferenceByName( messageDestRef.getName()); for(InjectionTarget next : messageDestRef.getInjectionTargets()) { existing.addInjectionTarget(next); } } catch(IllegalArgumentException e) { if (env != null) env.addMessageDestinationReferenceDescriptor(messageDestRef); else messageDestReferences.add(messageDestRef); if (getEjbBundleDescriptor() != null) { messageDestRef.setReferringBundleDescriptor( getEjbBundleDescriptor()); } } }
@Override public final void addMessageDestinationReferenceDescriptor( MessageDestinationReferenceDescriptor messageDestRef) { try { MessageDestinationReferenceDescriptor existing = getMessageDestinationReferenceByName( messageDestRef.getName()); for(InjectionTarget next : messageDestRef.getInjectionTargets()) { existing.addInjectionTarget(next); } } catch(IllegalArgumentException e) { if (env != null) env.addMessageDestinationReferenceDescriptor(messageDestRef); else messageDestReferences.add(messageDestRef); if (getEjbBundleDescriptor() != null) { messageDestRef.setReferringBundleDescriptor( getEjbBundleDescriptor()); } } }
/** * 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 EjbReference) { if (DOLUtils.getDefaultLogger().isLoggable(Level.FINE)) { DOLUtils.getDefaultLogger().fine("Adding ejb ref " + newDescriptor); } getInterceptor().addEjbReferenceDescriptor( (EjbReference) newDescriptor); } else if( newDescriptor instanceof MessageDestinationReferenceDescriptor ) { MessageDestinationReferenceDescriptor msgDestRef = (MessageDestinationReferenceDescriptor) newDescriptor; EjbBundleDescriptor ejbBundle = (EjbBundleDescriptor) getParentNode().getDescriptor(); // EjbBundle might not be set yet on EjbInterceptor, so set it // explicitly here. msgDestRef.setReferringBundleDescriptor(ejbBundle); getInterceptor().addMessageDestinationReferenceDescriptor (msgDestRef); } else { super.addDescriptor(newDescriptor); } }
@Override public void addDescriptor(Object newDescriptor) { if (newDescriptor instanceof EjbReference) { if (DOLUtils.getDefaultLogger().isLoggable(Level.FINE)) { DOLUtils.getDefaultLogger().fine("Adding ejb ref " + newDescriptor); } getEjbDescriptor().addEjbReferenceDescriptor( (EjbReference) newDescriptor); } else if (newDescriptor instanceof RunAsIdentityDescriptor) { if (DOLUtils.getDefaultLogger().isLoggable(Level.FINE)) { DOLUtils.getDefaultLogger().fine("Adding security-identity" + newDescriptor); } getEjbDescriptor().setUsesCallerIdentity(false); getEjbDescriptor().setRunAsIdentity((RunAsIdentityDescriptor) newDescriptor); } else if( newDescriptor instanceof MessageDestinationReferenceDescriptor ) { MessageDestinationReferenceDescriptor msgDestRef = (MessageDestinationReferenceDescriptor) newDescriptor; EjbBundleDescriptorImpl ejbBundle = (EjbBundleDescriptorImpl) getParentNode().getDescriptor(); // EjbBundle might not be set yet on EjbDescriptor, so set it // explicitly here. msgDestRef.setReferringBundleDescriptor(ejbBundle); getEjbDescriptor().addMessageDestinationReferenceDescriptor (msgDestRef); } else { super.addDescriptor(newDescriptor); } }
msgDestRef.setReferringBundleDescriptor(ejbBundle); getEjbDescriptor().addMessageDestinationReferenceDescriptor (msgDestRef);