Get serviceName's QName of Web Service

@param classInfo
@return
180464
public static QName getServiceQName(ClassInfo classInfo, String seiClassName, String targetNamespace) {
        AnnotationInfo annotationInfo = getAnnotationInfoFromClass(classInfo, "Service QName");
        if (annotationInfo == null) {
            return null;
        }

        //serviceName can only be defined in implementation bean, targetNamespace should be the implemented one.
        return getQName(classInfo, targetNamespace, annotationInfo.getValue(JaxWsConstants.SERVICENAME_ATTRIBUTE).getStringValue(),
                        JaxWsConstants.SERVICENAME_ATTRIBUTE_SUFFIX);

    }
208471
private static Class<?> getClassFromInternalName(String internalName) {
    try {
      return Class.forName(internalName.replace('/', '.'));
    } catch (ClassNotFoundException e) {
      throw new RuntimeException(e);
    }
  }
661584
public static String getServiceName()
    {
        ServiceContext context = (ServiceContext) _localContext.get();

        if (context != null)
            return context._serviceName;
        else
            return null;
    }
903031
public List<WebServiceFeature> getWSFeatureForSEIClass(String seiClassName) {
        PortComponentRefInfo portComponentRefInfo = seiNamePortComponentRefInfoMap.get(seiClassName);

        if (portComponentRefInfo == null) {
            return Collections.emptyList();
        }

        List<WebServiceFeatureInfo> featureInfos = portComponentRefInfo.getWebServiceFeatureInfos();

        if (featureInfos.isEmpty()) {
            return Collections.emptyList();
        }
        List<WebServiceFeature> wsFeatures = new ArrayList<WebServiceFeature>(featureInfos.size());

        for (WebServiceFeatureInfo featureInfo : featureInfos) {
            wsFeatures.add(featureInfo.getWebServiceFeature());
        }
        return wsFeatures;
    }
1078804
private static String getClassnameFor(String platform)
    {
        String pf = "Default";
        if (platform != null)
        {
            pf = platform;
        }
        return "org.apache.ojb.broker.platforms.Platform" + pf.substring(0, 1).toUpperCase() + pf.substring(1) + "Impl";
    }
318883
public static ClassLoader getServiceClassLoader(String serviceUniqueName) {
        ClassLoader appClassLoader = SERVICE_CLASSLOADER_MAP.get(serviceUniqueName);
        if (appClassLoader == null) {
            return ClassLoaderUtils.getCurrentClassLoader();
        } else {
            return appClassLoader;
        }
    }
202314
private static String serviceName(Class<?> serviceInterface) {
    // Service name
    Service serviceAnnotation = serviceInterface.getAnnotation(Service.class);
    requireNonNull(
        serviceAnnotation != null, String.format("Not a service interface: %s", serviceInterface));
    return isNullOrEmpty(serviceAnnotation.value())
        ? serviceInterface.getName()
        : serviceAnnotation.value();
  }
232890
public static Object getClassForName(String className) {
        Object object = null;
        try {
            Class classDefinition = Class.forName(className);
            object = classDefinition.newInstance();
        } catch (ClassNotFoundException e) {
            if (log.isEnabledFor(Level.ERROR)) {
                log.error("ClassNotFoundException", e);
            }
        } catch (InstantiationException e) {
            if (log.isEnabledFor(Level.ERROR)) {
                log.error("InstantiationException " + e.getMessage(), e);
            }
        } catch (IllegalAccessException e) {
            if (log.isEnabledFor(Level.ERROR)) {
                log.error("IllegalAccessException", e);
            }
        }
        return object;
    }
785209
String getClassName(String name) {
        char[] s = new char[name.length()+1];
        char c;
        int j = 0;

        if (!Character.isJavaIdentifierStart(name.charAt(0))) {
            s[j++] = '_';
        }
        for (int i=0; i < name.length(); i++, j++) {
            c = name.charAt(i);
            if ( Character.isJavaIdentifierPart(c) ) {
                s[j] = c;
            } else {
                s[j] = '_';
            }
        }
        return (new String(s)).trim();
     }
55250
public static String getFullClassName(String className) {
        final int i = className.indexOf('$');
        if (i > -1) {
            className = className.substring(0, i);
        }
        return className;
    }
169871
public String getName() {
    ResourceServices services = getServices();
    return (services != null) ? services.getResourceName() : null;
  }
1127383
private Service getServiceInfos(ClassLoader compileClassLoader) {
    Service service = new Service();

    // get some service properties from pom
    service.setServiceId(serviceId);
    service.setName(project.getName());

    // find @ServiceDoc annotated class in source folder
    JavaProjectBuilder builder = new JavaProjectBuilder();
    builder.addSourceTree(new File(source));
    JavaClass serviceInfo = builder.getSources().stream()
        .flatMap(javaSource -> javaSource.getClasses().stream())
        .filter(javaClass -> hasAnnotation(javaClass, ServiceDoc.class))
        .findFirst().orElse(null);

    // populate further service information from @ServiceDoc class and @LinkRelationDoc fields
    if (serviceInfo != null) {
      service.setDescriptionMarkup(serviceInfo.getComment());

      serviceInfo.getFields().stream()
      .filter(field -> hasAnnotation(field, LinkRelationDoc.class))
      .map(field -> toLinkRelation(serviceInfo, field, compileClassLoader))
      .forEach(service::addLinkRelation);
    }

    // resolve link relations
    service.resolve();

    return service;
  }
1305394
private String getInternalName(Klass k) {
		ByteArrayOutputStream bos = new ByteArrayOutputStream();
		klass.printValueOn(new PrintStream(bos));
		// '*' is used to denote VM internal klasses.
		return "* " + bos.toString();
	}
859009
String getJsClassname(TypeElement typeElement) {
		DataService dsAnno = typeElement.getAnnotation(DataService.class);
		String name = dsAnno.name();
		if (name.isEmpty()) {
			name = typeElement.getSimpleName().toString();
		}
		return name;
	}
6549
static Node getNodeInfo(String serviceName) {
    String jvmName = ManagementFactory.getRuntimeMXBean().getName();
    Timestamp censusTimestamp = Timestamp.fromMillis(System.currentTimeMillis());
    return Node.newBuilder()
        .setIdentifier(getProcessIdentifier(jvmName, censusTimestamp))
        .setLibraryInfo(getLibraryInfo(OpenCensusLibraryInformation.VERSION))
        .setServiceInfo(getServiceInfo(serviceName))
        .build();
  }
577473
public static String getSimpleClassName(String className) {
		// get the last part of the class name
		String[] parts = className.split("\\.");
		if (parts.length <= 1) {
			return className;
		} else {
			return parts[parts.length - 1];
		}
	}
557475
public function getName()
    {
        $fqdnClassName = get_class($this);
        $className = substr($fqdnClassName, strrpos($fqdnClassName, '\\') + 1);
        return str_replace("Service", "", $className);
    }