ApplicationContextServiceReferenceUtils

public final class ApplicationContextServiceReferenceUtils

Utility class for ServiceReference class.

Fields

SERVICE_NAME

public static final String SERVICE_NAME

Methods

isNotValid

public static boolean isNotValid(ServiceReference serviceReference)

Checks if given ServiceReference is not valid.

Parameters:
  • serviceReference – the ServiceReference to be validated
Returns:

true if given ServiceReference is not valid, false otherwise

isValid

public static boolean isValid(ServiceReference serviceReference)

Checks whether given ServiceReference is valid or not.

Parameters:
  • serviceReference – the ServiceReference to be validated
Returns:

true if given ServiceReference is valid, false otherwise