private final ThriftServiceMetadata parentService;
public ThriftServiceMetadata(Class<?> serviceClass, ThriftCatalog catalog)
{
Preconditions.checkNotNull(serviceClass, "serviceClass is null");
ThriftService thriftService = getThriftServiceAnnotation(serviceClass);
if (thriftService.value().length() == 0) {
name = serviceClass.getSimpleName();
}
else {
name = thriftService.value();
}
ImmutableMap.Builder<String, ThriftMethodMetadata> builder = ImmutableMap.builder();
ImmutableMap.Builder<String, ThriftMethodMetadata> declaredBuilder = ImmutableMap.builder();
for (Method method : findAnnotatedMethods(serviceClass, ThriftMethod.class)) {