@Override public boolean apply(InBuiltServiceTypes.InBuiltServiceType anInBuiltServiceType) { return anInBuiltServiceType.getType().getName().equals(serviceClassName); } }
@Override public boolean apply(InBuiltServiceType input) { return MailFetcherService.class.isAssignableFrom(input.getType()); } }));
private static Set<String> getServiceClassNames(final Set<InBuiltServiceTypes.InBuiltServiceType> builtInTypes) { final Set<String> names = Sets.newHashSetWithExpectedSize(builtInTypes.size()); for (InBuiltServiceTypes.InBuiltServiceType serviceType : builtInTypes) { names.add(serviceType.getType().getName()); } return names; }