org.apache.jetspeed.testhelpers
Class OJBHelper
java.lang.Object
org.apache.jetspeed.testhelpers.AbstractTestHelper
org.apache.jetspeed.testhelpers.DatasourceHelper
org.apache.jetspeed.testhelpers.OJBHelper
- All Implemented Interfaces:
- TestHelper
public class OJBHelper
- extends DatasourceHelper
Field Summary |
private org.springframework.context.support.GenericApplicationContext |
appCtx
|
private org.springframework.beans.factory.support.DefaultListableBeanFactory |
bf
|
static String |
DATASOURCE_BEAN
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATASOURCE_BEAN
public static final String DATASOURCE_BEAN
- See Also:
- Constant Field Values
appCtx
private org.springframework.context.support.GenericApplicationContext appCtx
bf
private org.springframework.beans.factory.support.DefaultListableBeanFactory bf
OJBHelper
public OJBHelper(Map context)
setUp
public void setUp()
throws Exception
- Specified by:
setUp
in interface TestHelper
- Overrides:
setUp
in class DatasourceHelper
- Throws:
Exception
tearDown
public void tearDown()
throws Exception
- Specified by:
tearDown
in interface TestHelper
- Overrides:
tearDown
in class DatasourceHelper
- Throws:
Exception
getTxProxiedObject
public Object getTxProxiedObject(Object object,
String[] interfacesToProxyAs)
throws Exception
- Surrounds the
object
with TransactionProxyFactoryBean
that implements all
interfaces specified in interfacesToProxyAs
- Parameters:
object
- object to wrap with a TX ProxyinterfacesToProxyAs
- interfeaces to proxy as
- Returns:
- Tx Wrapped version of the priginal object
- Throws:
Exception
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.