getServiceOrNull

public final static T getServiceOrNull<T extends Any>(Class<T> serviceClass)(source)

Returns the service registered in registerService or null, if no service is registered for the requested type.

Parameters

T

The type of the service

serviceClass

Java moment. The Java class of the service interface


public final static T getServiceOrNull<T extends Any>()(source)

Returns the service registered in registerService or null, if no service is registered for the requested type.

Parameters

T

The type of the service interface