Oracle Fusion Middleware
Oracle WebLogic Server 10.3.1 API Reference
11g Release 1 (10.3.1)

Part Number E13941-02

weblogic.common
Interface T3StartupDef


Deprecated. register a class with main() method or use application lifecycle listeners.

public interface T3StartupDef

T3StartupDef defines the interface for user-written startup objects.

A class that implements this interface and is registered in WebLogic's config.xml file will be automatically launched when the WebLogic Server starts up, and its startup method will be called. For more information on registering a startup class, check the Administrators' guide document, "Starting and Stopping WebLogic Servers."

Any class that implements this interface must have a public default constructor. For example, class "foo" must have a contstructor like:

     public foo() {
     }


Method Summary
 void setServices(T3ServicesDef services)
          Deprecated.  
 String startup(String name, Hashtable ht)
          Deprecated.  
 

Method Detail

startup

String startup(String name,
               Hashtable ht)
               throws Exception
Deprecated. 

The startup method is called by the WebLogic Server when your object is launched. Its arguments are supplied by the registration in WebLogic's config.xml file. The "name" argument is the virtual_name for the startupClass property, and the "hashtable" argument is made up of the name-value pairs supplied with the startupArgs property. The String returned by the startup() method is sent to the log file.

Parameters:
name - Virtual name by which the class is registered as a startupClass in the config.xml file
ht - A Hashtable that is made up of the name-value pairs supplied from the startupArgs property
Returns:
String that is sent to the log file
Throws:
Exception - if there is an error

setServices

void setServices(T3ServicesDef services)
Deprecated. 

Sets the services stub for the T3StartupDef object. The StartupDef can use the services reference to obtain access to services in the WebLogic Server. This method is invoked by the WebLogic Server prior to the startup() method.


Documentation is available at
http://download.oracle.com/docs/cd/E12839_01/web.1111/wls.htm
Copyright 1996, 2009, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server 10.3.1 API Reference
11g Release 1 (10.3.1)

Part Number E13941-02