com.sas.services.webapp
Class Bootstrap

java.lang.Object
  |
  +--com.sas.services.webapp.Bootstrap

public class Bootstrap
extends Object

This singleton bootstraps platform services.


Constructor Summary
Bootstrap()
           
 
Method Summary
 void destroy()
           
 void enableSystemProps(ServletContext context, List systemPropFileList)
          This method will set system properties read from a file.
 void execute(Properties localProps, Properties remoteProps)
          makes calls to deploy local services and obtain reference to remote services loads and sets optional local system properties
static Bootstrap getInstance()
           
 boolean isInitialized()
           
static void main(String[] argv)
          run as standalone creates singleton Bootstrap instance calls execute
 void reset()
          resets object to initial state, destroys and creates a new DiscoveryService
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bootstrap

public Bootstrap()
Method Detail

getInstance

public static Bootstrap getInstance()
Returns:
the singleton instance

reset

public void reset()
resets object to initial state, destroys and creates a new DiscoveryService

execute

public void execute(Properties localProps,
                    Properties remoteProps)
             throws Exception
makes calls to deploy local services and obtain reference to remote services loads and sets optional local system properties
Parameters:
localProps - local metadata source properties
remoteProps - remote metadata source properties if this is blank, or does not exists, then the deployment will be local only

isInitialized

public boolean isInitialized()

toString

public String toString()
Overrides:
toString in class Object

destroy

public void destroy()

enableSystemProps

public void enableSystemProps(ServletContext context,
                              List systemPropFileList)
This method will set system properties read from a file. It prepends file set in command line parm -Dsas.web.config=path-to-system-properties-file as the first system property file in the to search. It appends local system properties file as the last one in the list to search. the first unique property found will be used, other attempts to set the same property will be ignored
Parameters:
context -  
List - systemPropsFileList a List of file names pointing to system properties configuation files

main

public static void main(String[] argv)
                 throws Exception
run as standalone creates singleton Bootstrap instance calls execute
Parameters:
argv[0] - = local metadata source properties file
argv[1] - = remote metadata source properties file
Throws:
Exception -  




Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:05:13