本文整理匯總了Java中com.p6spy.engine.spy.P6SpyDriver類的典型用法代碼示例。如果您正苦於以下問題:Java P6SpyDriver類的具體用法?Java P6SpyDriver怎麽用?Java P6SpyDriver使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
P6SpyDriver類屬於com.p6spy.engine.spy包,在下文中一共展示了P6SpyDriver類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: checkP6spyEnabled
import com.p6spy.engine.spy.P6SpyDriver; //導入依賴的package包/類
/**
* fail ifF the specified PersistenceBroker does not use P6Spy.
*/
protected final void checkP6spyEnabled(PBKey pbKey)
{
JdbcConnectionDescriptor conDesc
= MetadataManager.getInstance().connectionRepository().getDescriptor(pbKey);
if (!P6SpyDriver.class.getName().equals(conDesc.getDriver()))
{
fail("this test works only with p6spy.\n" +
"Please set 'driver=" + P6SpyDriver.class.getName() + "' in file repository_database.xml" +
" or use ant build property '-DuseP6Spy=true'");
}
}