org.sandev.basics.nodecommon
Interface SingletonAccessor


public interface SingletonAccessor

A deployment specific reference to a SandRoot. During startup, the application will typically create an instance of a class implementing this interface to serve as a common reference to the SandRoot when bridging between UI display adaptors and the core application.

In addition to providing the declared interface methods, an implementing class is expected to provide a static accessor that can be used to retrieve a singleton instance of itself.


Method Summary
 java.lang.String getDeploymentPrefix()
          Return the prefix for this deployment.
 SandRoot getSandRoot()
          Return the SandRoot instance or null if not initialized yet.
 void init(SandRoot root)
          Set the global SandRoot reference.
 

Method Detail

getSandRoot

SandRoot getSandRoot()
Return the SandRoot instance or null if not initialized yet.


init

void init(SandRoot root)
Set the global SandRoot reference. This method may be called with a null parameter to clear the global reference on shutdown.


getDeploymentPrefix

java.lang.String getDeploymentPrefix()
Return the prefix for this deployment. Returns the empty string if no deployment prefix was defined at build time.