/** * Create a new MessageDestinationRefMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static MessageDestinationRefMetaData create(MessageDestinationReferenceMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new MessageDestinationRefMetaData(delegate); }
/** * Get the jndi name * * @return the jndi name */ public String getJNDIName() { return getJndiName(); }
/** * Get the type. * * @return the type. */ public String getType() { return getDelegate().getType(); }
String refName = ref.getRefName(); String jndiName = ref.getJNDIName(); String link = ref.getLink(); if (link != null)
/** * Get the refName. * * @return the refName. */ public String getRefName() { return getDelegate().getName(); }
/** * Get the refName. * * @return the refName. */ public String getRefName() { return getDelegate().getName(); }
/** * Get the jndi name * * @return the jndi name */ public String getJNDIName() { return getJndiName(); }
/** * Create a new MessageDestinationRefMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static MessageDestinationRefMetaData create(MessageDestinationReferenceMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new MessageDestinationRefMetaData(delegate); }
/** * Get the link. * * @return the link. */ public String getLink() { return getDelegate().getLink(); }
/** * Get the type. * * @return the type. */ public String getType() { return getDelegate().getType(); }
/** * Get the link. * * @return the link. */ public String getLink() { return getDelegate().getLink(); }
/** * Get the jndiName. * * @return the jndiName. */ public String getJndiName() { return getDelegate().getMappedName(); }
/** * Get the jndiName. * * @return the jndiName. */ public String getJndiName() { return getDelegate().getMappedName(); }
/** * Get the usage. * * @return the usage. */ public int getUsage() { MessageDestinationUsageType usage = getDelegate().getMessageDestinationUsage(); if (usage == null) return 0; if (usage == MessageDestinationUsageType.Consumes) return CONSUMES; if (usage == MessageDestinationUsageType.Produces) return PRODUCES; if (usage == MessageDestinationUsageType.ConsumesProduces) return CONSUMESPRODUCES; return 0; } }
/** * Get the usage. * * @return the usage. */ public int getUsage() { MessageDestinationUsageType usage = getDelegate().getMessageDestinationUsage(); if (usage == null) return 0; if (usage == MessageDestinationUsageType.Consumes) return CONSUMES; if (usage == MessageDestinationUsageType.Produces) return PRODUCES; if (usage == MessageDestinationUsageType.ConsumesProduces) return CONSUMESPRODUCES; return 0; } }