@Override public boolean matches(Descriptor d) { if (d.getServiceId().longValue() != fFactoryServiceId.longValue()) return false; if (d.getLocatorId().longValue() != fFactoryLocatorId.longValue()) return false; return true; }
@Override public boolean matches(Descriptor d) { if ((d.getServiceId().longValue() == id) && (d.getLocatorId().longValue() == locatorId)) { return true; } return false; }
@Override public boolean matches(Descriptor d) { if ((d.getServiceId().longValue() == id) && (d.getLocatorId().longValue() == locatorId)) { return true; } return false; }
@Override public boolean matches(Descriptor d) { if (d.getServiceId().longValue() != fFactoryServiceId.longValue()) return false; if (d.getLocatorId().longValue() != fFactoryLocatorId.longValue()) return false; return true; }
@Override public boolean matches(Descriptor d) { if (d.getServiceId().longValue() != fFactoryServiceId.longValue()) return false; if (d.getLocatorId().longValue() != fFactoryLocatorId.longValue()) return false; return true; }
@Override public boolean matches(Descriptor d) { if ((d.getServiceId().longValue() == id) && (d.getLocatorId().longValue() == locatorId)) { return true; } return false; }
@Override public boolean matches(Descriptor d) { if ((d.getServiceId().longValue() == id) && (d.getLocatorId().longValue() == locatorId)) { return true; } return false; }
@Override public boolean matches(Descriptor d) { if (d.getServiceId().longValue() != fFactoryServiceId.longValue()) return false; if (d.getLocatorId().longValue() != fFactoryLocatorId.longValue()) return false; return true; }
@Override public int compare(Descriptor o1, Descriptor o2) { int o1Ranking = o1.getRanking(); int o2Ranking = o2.getRanking(); if (o1Ranking < o2Ranking) return 1; if (o1Ranking > o2Ranking) return -1; long o1LocatorId = o1.getLocatorId().longValue(); long o2LocatorId = o2.getLocatorId().longValue(); if (o1LocatorId < o2LocatorId) return 1; if (o1LocatorId > o2LocatorId) return -1; long o1ServiceId = o1.getServiceId().longValue(); long o2ServiceId = o2.getServiceId().longValue(); if (o1ServiceId > o2ServiceId) return 1; if (o1ServiceId < o2ServiceId) return -1; return 0; }
@Override public int compare(Descriptor o1, Descriptor o2) { int o1Ranking = o1.getRanking(); int o2Ranking = o2.getRanking(); if (o1Ranking < o2Ranking) return 1; if (o1Ranking > o2Ranking) return -1; long o1LocatorId = o1.getLocatorId().longValue(); long o2LocatorId = o2.getLocatorId().longValue(); if (o1LocatorId < o2LocatorId) return 1; if (o1LocatorId > o2LocatorId) return -1; long o1ServiceId = o1.getServiceId().longValue(); long o2ServiceId = o2.getServiceId().longValue(); if (o1ServiceId > o2ServiceId) return 1; if (o1ServiceId < o2ServiceId) return -1; return 0; }
@Override public int compare(Descriptor o1, Descriptor o2) { int o1Ranking = o1.getRanking(); int o2Ranking = o2.getRanking(); if (o1Ranking < o2Ranking) return 1; if (o1Ranking > o2Ranking) return -1; long o1LocatorId = o1.getLocatorId().longValue(); long o2LocatorId = o2.getLocatorId().longValue(); if (o1LocatorId < o2LocatorId) return 1; if (o1LocatorId > o2LocatorId) return -1; long o1ServiceId = o1.getServiceId().longValue(); long o2ServiceId = o2.getServiceId().longValue(); if (o1ServiceId > o2ServiceId) return 1; if (o1ServiceId < o2ServiceId) return -1; return 0; }
@Override public int compare(Descriptor o1, Descriptor o2) { int o1Ranking = o1.getRanking(); int o2Ranking = o2.getRanking(); if (o1Ranking < o2Ranking) return 1; if (o1Ranking > o2Ranking) return -1; long o1LocatorId = o1.getLocatorId().longValue(); long o2LocatorId = o2.getLocatorId().longValue(); if (o1LocatorId < o2LocatorId) return 1; if (o1LocatorId > o2LocatorId) return -1; long o1ServiceId = o1.getServiceId().longValue(); long o2ServiceId = o2.getServiceId().longValue(); if (o1ServiceId > o2ServiceId) return 1; if (o1ServiceId < o2ServiceId) return -1; return 0; }
/** * 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()); }
sb.append("\n\tid=" + d.getServiceId());
sb.append("\n\tid=" + d.getServiceId());
sb.append("\n\tid=" + d.getServiceId());
proxiable = copyMe.isProxiable(); proxyForSameScope = copyMe.isProxyForSameScope(); id = copyMe.getServiceId(); locatorId = copyMe.getLocatorId(); analysisName = copyMe.getClassAnalysisName();