com.jamonapi.proxy
Class MonProxyFactory

java.lang.Object
  extended by com.jamonapi.proxy.MonProxyFactory

public class MonProxyFactory
extends java.lang.Object

This static MonProxyFactory simply uses an instance of MonProxyFactoryImp to do its work. MonProxyFactoryImp can also be created in its own right directly. See its java docs for further info. Mainly kept this class for backwards compatibility reasons.

Author:
steve souza

Constructor Summary
MonProxyFactory()
           
 
Method Summary
static void enable(boolean enable)
           
static void enableAll(boolean enable)
           
static void enableExceptionDetail(boolean enable)
           
static void enableExceptionSummary(boolean enable)
           
static void enableInterface(boolean enable)
           
static void enableResultSet(boolean enable)
           
static void enableSQLDetail(boolean enable)
           
static void enableSQLSummary(boolean enable)
           
static int getExceptionBufferSize()
           
static java.lang.Object[][] getExceptionDetail()
           
static java.lang.String[] getExceptionDetailHeader()
           
static java.lang.Class[] getInterfaces(java.lang.Class cls)
           
static MonProxyLabelerInt getLabelFactory()
           
static java.util.List getMatchStrings()
           
static MonProxy getMonProxy(java.lang.reflect.Proxy proxy)
           
static int getSQLBufferSize()
           
static java.lang.Object[][] getSQLDetail()
           
static java.lang.String[] getSQLDetailHeader()
           
static boolean isAllEnabled()
           
static boolean isEnabled()
           
static boolean isExceptionDetailEnabled()
           
static boolean isExceptionSummaryEnabled()
           
static boolean isInterfaceEnabled()
           
static boolean isResultSetEnabled()
           
static boolean isSQLDetailEnabled()
           
static boolean isSQLSummaryEnabled()
           
static java.sql.CallableStatement monitor(java.sql.CallableStatement statement)
           
static java.sql.Connection monitor(java.sql.Connection conn)
           
static java.lang.Object monitor(java.lang.Object object)
           
static java.lang.Object monitor(java.lang.Object object, java.lang.Class iface)
           
static java.lang.Object monitor(java.lang.Object object, java.lang.Class[] interfaces)
           
static java.sql.PreparedStatement monitor(java.sql.PreparedStatement statement)
           
static java.sql.ResultSet monitor(java.sql.ResultSet rs)
           
static java.sql.Statement monitor(java.sql.Statement statement)
           
static void resetExceptionDetail()
           
static void resetSQLDetail()
           
static void setExceptionBufferSize(int exceptionBufferSize)
           
static void setLabelFactory(MonProxyLabelerInt factory)
           
static void setMatchStrings(java.util.List ms)
           
static void setSQLBufferSize(int sqlBufferSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonProxyFactory

public MonProxyFactory()
Method Detail

setLabelFactory

public static void setLabelFactory(MonProxyLabelerInt factory)

getLabelFactory

public static MonProxyLabelerInt getLabelFactory()

getMonProxy

public static MonProxy getMonProxy(java.lang.reflect.Proxy proxy)

monitor

public static java.lang.Object monitor(java.lang.Object object)

monitor

public static java.lang.Object monitor(java.lang.Object object,
                                       java.lang.Class[] interfaces)

monitor

public static java.lang.Object monitor(java.lang.Object object,
                                       java.lang.Class iface)

monitor

public static java.sql.Connection monitor(java.sql.Connection conn)

monitor

public static java.sql.ResultSet monitor(java.sql.ResultSet rs)

monitor

public static java.sql.Statement monitor(java.sql.Statement statement)

monitor

public static java.sql.PreparedStatement monitor(java.sql.PreparedStatement statement)

monitor

public static java.sql.CallableStatement monitor(java.sql.CallableStatement statement)

getInterfaces

public static java.lang.Class[] getInterfaces(java.lang.Class cls)

getExceptionBufferSize

public static int getExceptionBufferSize()

setExceptionBufferSize

public static void setExceptionBufferSize(int exceptionBufferSize)

resetExceptionDetail

public static void resetExceptionDetail()

isInterfaceEnabled

public static boolean isInterfaceEnabled()

enableInterface

public static void enableInterface(boolean enable)

isExceptionSummaryEnabled

public static boolean isExceptionSummaryEnabled()

enableExceptionSummary

public static void enableExceptionSummary(boolean enable)

isExceptionDetailEnabled

public static boolean isExceptionDetailEnabled()

enableExceptionDetail

public static void enableExceptionDetail(boolean enable)

isSQLSummaryEnabled

public static boolean isSQLSummaryEnabled()

enableSQLSummary

public static void enableSQLSummary(boolean enable)

isSQLDetailEnabled

public static boolean isSQLDetailEnabled()

enableSQLDetail

public static void enableSQLDetail(boolean enable)

isResultSetEnabled

public static boolean isResultSetEnabled()

enableResultSet

public static void enableResultSet(boolean enable)

isEnabled

public static boolean isEnabled()

enableAll

public static void enableAll(boolean enable)

isAllEnabled

public static boolean isAllEnabled()

enable

public static void enable(boolean enable)

getExceptionDetailHeader

public static java.lang.String[] getExceptionDetailHeader()

getExceptionDetail

public static java.lang.Object[][] getExceptionDetail()

getSQLBufferSize

public static int getSQLBufferSize()

setSQLBufferSize

public static void setSQLBufferSize(int sqlBufferSize)

resetSQLDetail

public static void resetSQLDetail()

getSQLDetailHeader

public static java.lang.String[] getSQLDetailHeader()

getSQLDetail

public static java.lang.Object[][] getSQLDetail()

getMatchStrings

public static java.util.List getMatchStrings()

setMatchStrings

public static void setMatchStrings(java.util.List ms)