JSlim  


com.gtcgroup.jslim
Class ServiceLocatorSuper

java.lang.Object
  extended bycom.gtcgroup.jslim.ServiceLocatorSuper
Direct Known Subclasses:
ServiceLocator, ServiceLocatorTesting, ServiceLocatorX

abstract class ServiceLocatorSuper
extends java.lang.Object

This utility super-class provides static methods shared by the ServiceLocator sub-classes.

Copyright (c) 1999 - 2004 by Global Technology Consulting Group, Inc. at gtcGroup.com.
Use is authorized, provided the source is acknowledged by inclusion of this copyright notice.

Since:
v. 1.0
Author:
MDT (MarvinToll@gtcGroup.com)

Constructor Summary
(package private) ServiceLocatorSuper()
           
 
Method Summary
static java.util.ArrayList getArray(java.lang.String strElementKey)
          This method returns an ArrayList object.
static boolean getBoolean(java.lang.String strElementKey)
          This method returns a boolean.
static int getInt(java.lang.String strElementKey)
          This method returns a int.
private static ServiceKeyVO getPropertyVO()
           
static java.lang.String getText(java.lang.String strElementKey)
          This method returns an String object.
static void logDebug(java.lang.String strSourceClass, java.lang.String strSourceMethod, java.lang.String strMessage)
          Level - 300.
static void logEnter(java.lang.String strSourceClass, java.lang.String strSourceMethod)
          Level - 400.
static void logException(java.lang.String strSourceClass, java.lang.String strSourceMethod, java.lang.String strMessage, java.lang.Throwable throwable)
          Level - 500.
static void logExit(java.lang.String strSourceClass, java.lang.String strSourceMethod)
          Level - 400.
static void logFine(java.lang.String strSourceClass, java.lang.String strSourceMethod, java.lang.String strMessage)
          Level - 500.
static void logFiner(java.lang.String strSourceClass, java.lang.String strSourceMethod, java.lang.String strMessage)
          Level - 400.
static void logFinest(java.lang.String strSourceClass, java.lang.String strSourceMethod, java.lang.String strMessage)
          Level - 300.
static void logSQLException(java.lang.String strSourceClass, java.lang.String strSourceMethod, java.lang.String strMessage, java.sql.SQLException sE)
          Level - 500.
static void logWarning(java.lang.String strSourceClass, java.lang.String strSourceMethod, java.lang.String strMessage)
          Level - 500.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceLocatorSuper

ServiceLocatorSuper()
Method Detail

logException

public static final void logException(java.lang.String strSourceClass,
                                      java.lang.String strSourceMethod,
                                      java.lang.String strMessage,
                                      java.lang.Throwable throwable)
Level - 500.

Parameters:
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.
strMessage - The message.
throwable - The originating exception.

logSQLException

public static final void logSQLException(java.lang.String strSourceClass,
                                         java.lang.String strSourceMethod,
                                         java.lang.String strMessage,
                                         java.sql.SQLException sE)
Level - 500.

Parameters:
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.
strMessage - The message.
sE - The originating SQL exception.

logWarning

public static final void logWarning(java.lang.String strSourceClass,
                                    java.lang.String strSourceMethod,
                                    java.lang.String strMessage)
Level - 500.

Parameters:
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.
strMessage - The message.

logFine

public static final void logFine(java.lang.String strSourceClass,
                                 java.lang.String strSourceMethod,
                                 java.lang.String strMessage)
Level - 500.

Parameters:
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.
strMessage - The message.

logEnter

public static final void logEnter(java.lang.String strSourceClass,
                                  java.lang.String strSourceMethod)
Level - 400.

Parameters:
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.

logExit

public static final void logExit(java.lang.String strSourceClass,
                                 java.lang.String strSourceMethod)
Level - 400.

Parameters:
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.

logFiner

public static final void logFiner(java.lang.String strSourceClass,
                                  java.lang.String strSourceMethod,
                                  java.lang.String strMessage)
Level - 400.

Parameters:
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.
strMessage - The message.

logDebug

public static final void logDebug(java.lang.String strSourceClass,
                                  java.lang.String strSourceMethod,
                                  java.lang.String strMessage)
Level - 300.

Parameters:
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.
strMessage - The message.

logFinest

public static final void logFinest(java.lang.String strSourceClass,
                                   java.lang.String strSourceMethod,
                                   java.lang.String strMessage)
Level - 300.

Parameters:
strSourceClass - The class detecting the error.
strSourceMethod - The method detecting the error.
strMessage - The message.

getArray

public static final java.util.ArrayList getArray(java.lang.String strElementKey)
                                          throws JSlimException

This method returns an ArrayList object.

A _Property Service is optionally specified in a descriptor document. The following types are supported:

Parameters:
strElementKey - Represents an element key from a descriptor document.
Returns:
An ArrayList object.
Throws:
JSlimException - if an exception encountered.

getBoolean

public static final boolean getBoolean(java.lang.String strElementKey)
                                throws JSlimException

This method returns a boolean.

A _Property Service is optionally specified in a descriptor document. The following types are supported:

Parameters:
strElementKey - Represents an element key from a descriptor document.
Returns:
A boolean.
Throws:
JSlimException - if an exception encountered.

getInt

public static final int getInt(java.lang.String strElementKey)
                        throws JSlimException

This method returns a int.

A _Property Service is optionally specified in a descriptor document. The following types are supported:

Parameters:
strElementKey - Represents an element key from a descriptor document.
Returns:
A int.
Throws:
JSlimException - if an exception encountered.

getText

public static final java.lang.String getText(java.lang.String strElementKey)
                                      throws JSlimException

This method returns an String object.

A _Property Service is optionally specified in a descriptor document. The following types are supported:

Parameters:
strElementKey - Represents an element key from a descriptor document.
Returns:
An String object.
Throws:
JSlimException - if an exception encountered.

getPropertyVO

private static final ServiceKeyVO getPropertyVO()
                                         throws JSlimException
Throws:
JSlimException

JSlim  


Copyright (c) 1999 - 2004 by Global Technology Consulting Group, Inc. at gtcGroup.com.
Use is authorized, provided the source is acknowledged by inclusion of this copyright notice.