/** * Create a new EjbLocalRefMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static EjbLocalRefMetaData create(EJBLocalReferenceMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new EjbLocalRefMetaData(delegate); }
/** * Create a new EjbLocalRefMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static EjbLocalRefMetaData create(EJBLocalReferenceMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new EjbLocalRefMetaData(delegate); }
/** * Get an ejb local reference by name * * @param name the name * @return the reference or null if not found * @throws IllegalArgumentException for a null name */ public EjbLocalRefMetaData getEjbLocalRefByName(String name) { EJBLocalReferenceMetaData result = getDelegate().getEjbLocalReferenceByName(name); if (result != null) return new EjbLocalRefMetaData(result); return null; }
/** * Get an ejb local reference by name * * @param name the name * @return the reference or null if not found * @throws IllegalArgumentException for a null name */ public EjbLocalRefMetaData getEjbLocalRefByName(String name) { EJBLocalReferenceMetaData result = getDelegate().getEjbLocalReferenceByName(name); if (result != null) return new EjbLocalRefMetaData(result); return null; }