你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CodeBuilderBase Class

  • java.lang.Object
    • CodeBuilder
      • microsoft.servicefabric.services.remoting.builder.CodeBuilderBase

public class CodeBuilderBase implements CodeBuilder

Base class from which Actor and Services Code Builder classes extend.

Constructor Summary

Constructor Description
CodeBuilderBase(CodeBuilderNamesBase codeBuilderNames)

Method Summary

Modifier and Type Method and Description
abstract MethodBodyTypesBuildResult buildMethodBodyTypes(Class<?> interfaceType)

Method body types

abstract MethodDispatcherBuildResult buildMethodDispatcher(Class<?> interfaceType)

Method dispatcher

abstract ProxyGeneratorBuildResult buildProxyGenerator(Class<?> interfaceType)

Proxy generator.

CodeBuilderNames getNames()

Get code builder names.

MethodBodyTypesBuildResult getOrBuildMethodBodyTypes(Class<?> interfaceType)

Get or Build method body type.

MethodDispatcherBuildResult getOrBuildMethodDispatcher(Class<?> interfaceType)

Get or Build Method Dispatcher.

ProxyGeneratorBuildResult getOrBuildProxyGenerator(Class<?> interfaceType)

Get or build the proxy generator.

Constructor Details

CodeBuilderBase

protected CodeBuilderBase(CodeBuilderNamesBase codeBuilderNames)

Parameters:

codeBuilderNames

Method Details

buildMethodBodyTypes

protected abstract MethodBodyTypesBuildResult buildMethodBodyTypes(Class interfaceType)

Method body types

Parameters:

interfaceType - Interface type.

Returns:

Method body types build result.

buildMethodDispatcher

protected abstract MethodDispatcherBuildResult buildMethodDispatcher(Class interfaceType)

Method dispatcher

Parameters:

interfaceType - interface type

Returns:

Method dispatcher build result.

buildProxyGenerator

protected abstract ProxyGeneratorBuildResult buildProxyGenerator(Class interfaceType)

Proxy generator.

Parameters:

interfaceType - Interface type.

Returns:

Proxy generator build result.

getNames

public CodeBuilderNames getNames()

Get code builder names.

Overrides:

CodeBuilderBase.getNames()

Returns:

An object of CodeBuilderNames

getOrBuildMethodBodyTypes

public MethodBodyTypesBuildResult getOrBuildMethodBodyTypes(Class interfaceType)

Get or Build method body type.

Overrides:

CodeBuilderBase.getOrBuildMethodBodyTypes(Class<?> interfaceType)

Parameters:

interfaceType - Interface type.

Returns:

Method body types build result microsoft.servicefabric.services.remoting.builder.MethodBodyTypesBuildResult

getOrBuildMethodDispatcher

public MethodDispatcherBuildResult getOrBuildMethodDispatcher(Class interfaceType)

Get or Build Method Dispatcher.

Overrides:

CodeBuilderBase.getOrBuildMethodDispatcher(Class<?> interfaceType)

Parameters:

interfaceType - Type of the Interface.

Returns:

Method Dispatcher build result.

getOrBuildProxyGenerator

public ProxyGeneratorBuildResult getOrBuildProxyGenerator(Class interfaceType)

Get or build the proxy generator.

Overrides:

CodeBuilderBase.getOrBuildProxyGenerator(Class<?> interfaceType)

Parameters:

interfaceType - Interface type.

Returns:

proxy generator build result ProxyGeneratorBuildResult

Applies to