electric.util.product
Class Product

java.lang.Object
  extended byelectric.util.product.Product
All Implemented Interfaces:
ILoggingConstants, IProductConfigConstants

public class Product
extends java.lang.Object
implements ILoggingConstants, IProductConfigConstants

Product contains startup logic as well as a few constants that describe the product and its version information. This class is used by other subsystems, and is not intended for general use.

Author:
webMethods

Field Summary
 
Fields inherited from interface electric.util.log.ILoggingConstants
CLASSLOADER_EVENT, COMMAND_EVENT, COMMENT_EVENT, CONFIG_EVENT, DEBUG_EVENT, ELECTRIC_LOGGING_PROPERTY, ERROR_EVENT, EXCEPTION_EVENT, FILE_EVENT, LICENSE_EVENT, RESOURCES_EVENT, SECURITY_EVENT, SHUTDOWN_EVENT, SOURCE_EVENT, SQL_EVENT, STARTUP_EVENT, WARNING_EVENT
 
Fields inherited from interface electric.util.product.IProductConfigConstants
ACTIVATION_CODE, APPLICATION_CONTEXT, CONFIG, ENABLER, GLUE_CONFIG_FILE_NAME, LICENSE_KEY, LICENSE_KEYS, MAJOR_VERSION, MINOR_VERSION, NAME, PATCH_VERSION, PRODUCT, PRODUCT_NAME, USER_ID, WEB_INF
 
Constructor Summary
Product()
           
 
Method Summary
static void addPlugin(IProductConfig plugin)
           
static Element getConfig()
           
static Element getConfig(java.lang.String appPath)
           
static Element getConfig(java.lang.String product, java.lang.String appPath)
           
static java.lang.String[] getLicensePrefixes()
           
static IProductConfig getProductConfig()
           
static java.lang.String getShortDescription()
           
static boolean isStarted()
           
static boolean isStarting()
           
static void loadAppContext(Element config)
           
static void removePlugin(IProductConfig plugin)
           
static void startup()
          Start up product, locating and executing initializing from the default application template.
static void startup(java.lang.String appPath)
           
static void startup(java.lang.String appPath, Element config, IProductConfig productConfig)
           
static void startupAsServer()
           
static void startupAsServer(java.lang.String appPath, Element config, java.lang.Object webApplication)
           
static void startupAsServer(java.lang.String appPath, Element config, java.lang.Object webApplication, IProductConfig suggestedConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Product

public Product()
Method Detail

addPlugin

public static void addPlugin(IProductConfig plugin)
                      throws java.lang.Throwable
Parameters:
plugin -
Throws:
java.lang.Throwable

removePlugin

public static void removePlugin(IProductConfig plugin)
Parameters:
plugin -

startup

public static void startup()
Start up product, locating and executing initializing from the default application template. This method is called automatically, and is not intended for general use.


startup

public static void startup(java.lang.String appPath)
Parameters:
appPath -

startup

public static void startup(java.lang.String appPath,
                           Element config,
                           IProductConfig productConfig)
Parameters:
appPath -
config -
productConfig -

startupAsServer

public static void startupAsServer()

startupAsServer

public static void startupAsServer(java.lang.String appPath,
                                   Element config,
                                   java.lang.Object webApplication)
Parameters:
appPath -
config -
webApplication -

startupAsServer

public static void startupAsServer(java.lang.String appPath,
                                   Element config,
                                   java.lang.Object webApplication,
                                   IProductConfig suggestedConfig)
Parameters:
appPath -
config -
webApplication -
suggestedConfig -

getLicensePrefixes

public static java.lang.String[] getLicensePrefixes()
Returns:

isStarted

public static boolean isStarted()
Returns:
true if product.startup has been called.
See Also:
isStarting()

isStarting

public static boolean isStarting()
Returns:
true if product is starting but has not finished startup sequence.
See Also:
isStarted()

getProductConfig

public static IProductConfig getProductConfig()

getShortDescription

public static java.lang.String getShortDescription()

getConfig

public static Element getConfig(java.lang.String appPath)
                         throws java.io.IOException
Parameters:
appPath -
Throws:
java.io.IOException

getConfig

public static Element getConfig(java.lang.String product,
                                java.lang.String appPath)
                         throws java.io.IOException,
                                ParseException
Parameters:
product -
appPath -
Throws:
java.io.IOException
ParseException

loadAppContext

public static void loadAppContext(Element config)
Parameters:
config -

getConfig

public static Element getConfig()
Returns:


copyright© 2001-2004 by webMethods All Rights Reserved.