CodeGeneratorManager

public class CodeGeneratorManager extends Object

Client Side class responsible for connecting to the CodeGeneratorService. A connection to the service is only made the first time code generation is requested.

Public Constructor Summary

CodeGeneratorManager(Context context)

Public Method Summary

void
onPause()
Unbind the underlying service (if it is bound).
void
onResume()
Inform this class that it is ok to bind to the service and remove any stored requests as the service won't be bound until a new request comes in.
void
requestCodeGeneration(CodeGenerationRequest codeGenerationRequest)
Calls the Service to request code generation for the workspace passed in.

Protected Method Summary

void
unbind()
Checks if the service is currently bound and unbinds it if it is.

Inherited Method Summary

Public Constructors

public CodeGeneratorManager (Context context)

Parameters
context

Public Methods

public void onPause ()

Unbind the underlying service (if it is bound).

public void onResume ()

Inform this class that it is ok to bind to the service and remove any stored requests as the service won't be bound until a new request comes in.

public void requestCodeGeneration (CodeGenerationRequest codeGenerationRequest)

Calls the Service to request code generation for the workspace passed in.

Parameters
codeGenerationRequest the request to generate code.

Protected Methods

protected void unbind ()

Checks if the service is currently bound and unbinds it if it is.