/** * This method creates a filter that will match one and only one descriptor. The passed * in descriptor must have both its serviceID and locatorId filled in, or else this * method will throw an IllegalArgumentException * * @param descriptor The descriptor from which to create a filter * @return A filter to use that will match this descriptor exactly */ public static IndexedFilter createSpecificDescriptorFilter(Descriptor descriptor) { String contract = ServiceLocatorUtilities.getBestContract(descriptor); String name = descriptor.getName(); if (descriptor.getServiceId() == null) { throw new IllegalArgumentException("The descriptor must have a specific service ID"); } if (descriptor.getLocatorId() == null) { throw new IllegalArgumentException("The descriptor must have a specific locator ID"); } return new SpecificFilterImpl(contract, name, descriptor.getServiceId(), descriptor.getLocatorId()); }
/** * This method creates a filter that will match one and only one descriptor. The passed * in descriptor must have both its serviceID and locatorId filled in, or else this * method will throw an IllegalArgumentException * * @param descriptor The descriptor from which to create a filter * @return A filter to use that will match this descriptor exactly */ public static IndexedFilter createSpecificDescriptorFilter(Descriptor descriptor) { String contract = ServiceLocatorUtilities.getBestContract(descriptor); String name = descriptor.getName(); if (descriptor.getServiceId() == null) { throw new IllegalArgumentException("The descriptor must have a specific service ID"); } if (descriptor.getLocatorId() == null) { throw new IllegalArgumentException("The descriptor must have a specific locator ID"); } return new SpecificFilterImpl(contract, name, descriptor.getServiceId(), descriptor.getLocatorId()); }
/** * This method creates a filter that will match one and only one descriptor. The passed * in descriptor must have both its serviceID and locatorId filled in, or else this * method will throw an IllegalArgumentException * * @param descriptor The descriptor from which to create a filter * @return A filter to use that will match this descriptor exactly */ public static IndexedFilter createSpecificDescriptorFilter(Descriptor descriptor) { String contract = ServiceLocatorUtilities.getBestContract(descriptor); String name = descriptor.getName(); if (descriptor.getServiceId() == null) { throw new IllegalArgumentException("The descriptor must have a specific service ID"); } if (descriptor.getLocatorId() == null) { throw new IllegalArgumentException("The descriptor must have a specific locator ID"); } return new SpecificFilterImpl(contract, name, descriptor.getServiceId(), descriptor.getLocatorId()); }
/** * This method creates a filter that will match one and only one descriptor. The passed * in descriptor must have both its serviceID and locatorId filled in, or else this * method will throw an IllegalArgumentException * * @param descriptor The descriptor from which to create a filter * @return A filter to use that will match this descriptor exactly */ public static IndexedFilter createSpecificDescriptorFilter(Descriptor descriptor) { String contract = ServiceLocatorUtilities.getBestContract(descriptor); String name = descriptor.getName(); if (descriptor.getServiceId() == null) { throw new IllegalArgumentException("The descriptor must have a specific service ID"); } if (descriptor.getLocatorId() == null) { throw new IllegalArgumentException("The descriptor must have a specific locator ID"); } return new SpecificFilterImpl(contract, name, descriptor.getServiceId(), descriptor.getLocatorId()); }
final String contract = getBestContract(descriptor); final String name = descriptor.getName();
final String contract = getBestContract(descriptor); final String name = descriptor.getName();
final String contract = getBestContract(descriptor); final String name = descriptor.getName();
final String contract = getBestContract(descriptor); final String name = descriptor.getName();