/** * constructs an local or remote ejb reference to the given ejb descriptor, * the description and the name of the reference * * @param name is the name of the reference * @param description is a human readable description of the reference * @param ejbDescriptor the referenced EJB * @param isLocal true if the reference uses the local interfaces */ public EjbReferenceDescriptor(String name, String description, EjbDescriptor ejbDescriptor, boolean isLocal) { super(name, "", description); this.isLocal = isLocal; this.setEjbDescriptor(ejbDescriptor); }
/** * Construct an remote ejb reference to the given ejb descriptor * with the given name and descriptor of the reference. * * @param name the ejb-ref name as used in the referencing bean * @param description optional description * @param ejbDescriptor of the referenced bean */ public EjbReferenceDescriptor(String name, String description, EjbDescriptor ejbDescriptor) { super(name, "", description); this.setEjbDescriptor(ejbDescriptor); }
/** * Construct an remote ejb reference to the given ejb descriptor * with the given name and descriptor of the reference. * * @param name the ejb-ref name as used in the referencing bean * @param description optional description * @param ejbDescriptor of the referenced bean */ public EjbReferenceDescriptor(String name, String description, EjbDescriptor ejbDescriptor) { super(name, "", description); this.setEjbDescriptor(ejbDescriptor); }
/** * constructs an local or remote ejb reference to the given ejb descriptor, * the desciption and the name of the reference * * @param name is the name of the reference * @param description is a human readable description of the reference * @param ejbDescriptor the referenced EJB * @param isLocal true if the reference uses the local interfaces */ public EjbReferenceDescriptor(String name, String description, EjbDescriptor ejbDescriptor, boolean isLocal) { super(name, "", description); this.isLocal = isLocal; this.setEjbDescriptor(ejbDescriptor); }
/** * Replace all pointers to the old EntityDescriptor in this app * with myself. Used when user switches from BMP to CMP or vice versa * in deploytool wizard. */ public void replaceEntityDescriptor(EjbEntityDescriptor oldEntityDesc) { // first replace in bundleDesc EjbBundleDescriptor bundle = oldEntityDesc.getEjbBundleDescriptor(); bundle.replaceEjb(oldEntityDesc, this); // now replace in all EjbReferences to the old Ejb in this app Iterator refs = oldEntityDesc.getAllEjbReferencers().iterator(); while ( refs.hasNext() ) { EjbReferenceDescriptor ref = (EjbReferenceDescriptor)refs.next(); ref.setEjbDescriptor(this); } }