registerService

public final static Boolean registerService<T extends Any>(Class<T> serviceClass, T service)(source)

Register a service for a class.

Parameters

T

Java moment. The type of the service interface

serviceClass

Java moment. The class used to query the service. Should be a super interface of the service

service

The implementation of the service interface


public final static Boolean registerService<T extends Any>(T service)(source)

Register a service for a class.

Parameters

T

The class used to query the service. Should be a super interface of the service

service

The implementation of the service interface