@Override public MessageDestinationReferenceDescriptor getDescriptor() { if (descriptor == null) descriptor = new MessageDestinationReferenceDescriptor(); return descriptor; }
@Override public MessageDestinationReferenceDescriptor getDescriptor() { if (descriptor == null) descriptor = new MessageDestinationReferenceDescriptor(); return descriptor; }
/** * Return MessageDestinationReferenceDescriptors with given name * if exists or a new one without name being set. * @param logicName * @param rcContexts * @return an array of message destination reference descriptors */ private MessageDestinationReferenceDescriptor[] getMessageDestinationReferenceDescriptors (String logicName, ResourceContainerContext[] rcContexts) { MessageDestinationReferenceDescriptor msgDestRefs[] = new MessageDestinationReferenceDescriptor[rcContexts.length]; for (int i = 0; i < rcContexts.length; i++) { MessageDestinationReferenceDescriptor msgDestRef = rcContexts[i].getMessageDestinationReference(logicName); if (msgDestRef == null) { msgDestRef = new MessageDestinationReferenceDescriptor(); rcContexts[i].addMessageDestinationReferenceDescriptor( msgDestRef); } msgDestRefs[i] = msgDestRef; } return msgDestRefs; }
/** * Return MessageDestinationReferenceDescriptors with given name * if exists or a new one without name being set. * @param logicName * @param rcContexts * @return an array of message destination reference descriptors */ private MessageDestinationReferenceDescriptor[] getMessageDestinationReferenceDescriptors (String logicName, ResourceContainerContext[] rcContexts) { MessageDestinationReferenceDescriptor msgDestRefs[] = new MessageDestinationReferenceDescriptor[rcContexts.length]; for (int i = 0; i < rcContexts.length; i++) { MessageDestinationReferenceDescriptor msgDestRef = rcContexts[i].getMessageDestinationReference(logicName); if (msgDestRef == null) { msgDestRef = new MessageDestinationReferenceDescriptor(); rcContexts[i].addMessageDestinationReferenceDescriptor( msgDestRef); } msgDestRefs[i] = msgDestRef; } return msgDestRefs; }