csdk.v1_0.runner.core
Class RunnerEnvironment

java.lang.Object
  extended by csdk.v1_0.runner.core.RunnerEnvironment
All Implemented Interfaces:
ICSDKEnvironment, Serializable

public class RunnerEnvironment
extends Object
implements ICSDKEnvironment, Serializable

Interface das aplicações com o ambiente Runner.

See Also:
Serialized Form

Constructor Summary
RunnerEnvironment(Map<Class<? extends IContext>,IContext> contexts, String charsetName)
          Construtor.
 
Method Summary
 void cleanupContexts()
          Limpa os contextos.
 void finishApplication()
          
 Charset getCharset()
          
<T extends IContext>
T
getContext(Class<T> contextClass)
          
 Locale getLocale()
          
 Charset getServerCharset()
          
 void handleException(Exception error, Window parent)
          
 String runApplication(String appId)
          
 boolean sendMessage(String appId, IMessage message)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunnerEnvironment

public RunnerEnvironment(Map<Class<? extends IContext>,IContext> contexts,
                         String charsetName)
Construtor.

Parameters:
contexts - contextos disponíveis no ambiente.
charsetName - charset do ambiente.
Method Detail

finishApplication

public void finishApplication()

Specified by:
finishApplication in interface ICSDKEnvironment

cleanupContexts

public void cleanupContexts()
Limpa os contextos.


runApplication

public String runApplication(String appId)
                      throws ApplicationException

Specified by:
runApplication in interface ICSDKEnvironment
Throws:
ApplicationException

sendMessage

public boolean sendMessage(String appId,
                           IMessage message)

Specified by:
sendMessage in interface ICSDKEnvironment

handleException

public void handleException(Exception error,
                            Window parent)

Specified by:
handleException in interface ICSDKEnvironment

getContext

public <T extends IContext> T getContext(Class<T> contextClass)

Specified by:
getContext in interface ICSDKEnvironment

getLocale

public Locale getLocale()

Specified by:
getLocale in interface ICSDKEnvironment

getCharset

public Charset getCharset()

Specified by:
getCharset in interface ICSDKEnvironment

getServerCharset

public Charset getServerCharset()

Specified by:
getServerCharset in interface ICSDKEnvironment


Copyright © 2013–2014 Tecgraf/PUC-Rio. All rights reserved.