public void release() { if (domDescriptor != null) { // children added via createProxy are not registered in serviceLocator ServiceLocatorUtilities.removeOneDescriptor(getHabitat(), domDescriptor, true); } listeners.clear(); }
/** * This method will attempt to remove descriptors matching the passed in descriptor from * the given locator. If the descriptor has its locatorId and serviceId values set then * only a descriptor matching those exact locatorId and serviceId will be removed. Otherwise * any descriptor that returns true from the {@link DescriptorImpl#equals(Object)} method * will be removed from the locator. Note that if more than one descriptor matches they * will all be removed. Hence more than one descriptor may be removed by this method. * * @param locator The non-null locator to remove the descriptor from * @param descriptor The non-null descriptor to remove from the locator */ public static void removeOneDescriptor(ServiceLocator locator, Descriptor descriptor) { removeOneDescriptor(locator, descriptor, false); }
/** * This method will attempt to remove descriptors matching the passed in descriptor from * the given locator. If the descriptor has its locatorId and serviceId values set then * only a descriptor matching those exact locatorId and serviceId will be removed. Otherwise * any descriptor that returns true from the {@link DescriptorImpl#equals(Object)} method * will be removed from the locator. Note that if more than one descriptor matches they * will all be removed. Hence more than one descriptor may be removed by this method. * * @param locator The non-null locator to remove the descriptor from * @param descriptor The non-null descriptor to remove from the locator */ public static void removeOneDescriptor(ServiceLocator locator, Descriptor descriptor) { removeOneDescriptor(locator, descriptor, false); }
/** * This method will attempt to remove descriptors matching the passed in descriptor from * the given locator. If the descriptor has its locatorId and serviceId values set then * only a descriptor matching those exact locatorId and serviceId will be removed. Otherwise * any descriptor that returns true from the {@link DescriptorImpl#equals(Object)} method * will be removed from the locator. Note that if more than one descriptor matches they * will all be removed. Hence more than one descriptor may be removed by this method. * * @param locator The non-null locator to remove the descriptor from * @param descriptor The non-null descriptor to remove from the locator */ public static void removeOneDescriptor(ServiceLocator locator, Descriptor descriptor) { removeOneDescriptor(locator, descriptor, false); }
/** * This method will attempt to remove descriptors matching the passed in descriptor from * the given locator. If the descriptor has its locatorId and serviceId values set then * only a descriptor matching those exact locatorId and serviceId will be removed. Otherwise * any descriptor that returns true from the {@link DescriptorImpl#equals(Object)} method * will be removed from the locator. Note that if more than one descriptor matches they * will all be removed. Hence more than one descriptor may be removed by this method. * * @param locator The non-null locator to remove the descriptor from * @param descriptor The non-null descriptor to remove from the locator */ public static void removeOneDescriptor(ServiceLocator locator, Descriptor descriptor) { removeOneDescriptor(locator, descriptor, false); }
public void release() { if (domDescriptor != null) { // children added via createProxy are not registered in serviceLocator ServiceLocatorUtilities.removeOneDescriptor(getHabitat(), domDescriptor, true); } listeners.clear(); }
public void release() { if (domDescriptor != null) { // children added via createProxy are not registered in serviceLocator ServiceLocatorUtilities.removeOneDescriptor(getHabitat(), domDescriptor, true); } listeners.clear(); }
ServiceLocatorUtilities.removeOneDescriptor(sl, descriptor);
ServiceLocatorUtilities.removeOneDescriptor(sl, descriptor);