ServiceTypeInformation Class

  • java.lang.Object
    • microsoft.servicefabric.services.remoting.runtime.ServiceTypeInformation

public class ServiceTypeInformation

Specifies the class used by the ServiceRemoting to lookup the interfaces implemented by the service.

Method Summary

Modifier and Type Method and Description
ServiceTypeInformation get(Class<?> serviceType)

Factory method that constructs a ServiceTypeInformation object from the given type

Class<?> getImplementationType()

Gets type of the class implementing the service interface.

List<Class<?>> getInterfaceTypes()

The interface types implemented

boolean isAbstract()

Gets if class implementing service interface is abstract.

ServiceTypeInformation tryGet(Class<?> serviceType)

Gets the Factory method that constructs a ServiceTypeInformation object from the given type.

Method Details

get

public static ServiceTypeInformation get(Class serviceType)

Factory method that constructs a ServiceTypeInformation object from the given type

Parameters:

serviceType - to examine

Returns:

ServiceTypeInformation

getImplementationType

public Class getImplementationType()

Gets type of the class implementing the service interface.

Returns:

Type of the class implementing the service interface.

getInterfaceTypes

public List<>> getInterfaceTypes()

The interface types implemented

Returns:

List of interface types

isAbstract

public boolean isAbstract()

Gets if class implementing service interface is abstract.

Returns:

true if class implementing service interface is abstract, otherwise false.

tryGet

public static ServiceTypeInformation tryGet(Class serviceType)

Gets the Factory method that constructs a ServiceTypeInformation object from the given type.

Parameters:

serviceType - Type to examine

Returns:

ServiceTypeInformation

Applies to