votorola.a.mail
Class MailMetaService.ConfigurationContext

java.lang.Object
  extended by MailMetaService.ConfigurationContext
Enclosing class:
MailMetaService

@ThreadSafe
public static final class MailMetaService.ConfigurationContext
extends Object

A context for configuring the mail responder's electoral meta-service. The meta-service is configured by its configuration file, which contains a script (s) for that purpose. During construction of the meta-service, an instance of this context (metaCC) is passed to s, via s::configureMailMetaService(metaCC).


Method Summary
static MailMetaService.ConfigurationContext configure(ElectoralSubserver subserver, JavaScriptIncluder s)
          Constructs the complete configuration of the meta-service.
 String getName()
           
 void setName(String name)
          Sets the name that nominally identifies the meta-service, and is used to construct its service email address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

configure

public static MailMetaService.ConfigurationContext configure(ElectoralSubserver subserver,
                                                             JavaScriptIncluder s)
                                                      throws ScriptException
Constructs the complete configuration of the meta-service.

Parameters:
s - the compiled configuration script
Throws:
ScriptException

getName

public String getName()
See Also:
ElectoralService.name(), MailMetaService.serviceEmail(), setName(String)

setName

@ThreadRestricted(value="constructor")
public void setName(String name)
Sets the name that nominally identifies the meta-service, and is used to construct its service email address. The default value is the subserver name.

See Also:
getName()