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
Constructor Summary |
OJBHelper(java.util.Map context)
|
Method Summary |
java.lang.Object |
getTxProxiedObject(java.lang.Object object,
java.lang.String[] interfacesToProxyAs)
Surrounds the object with TransactionProxyFactoryBean that implements all
interfaces specified in interfacesToProxyAs |
void |
setUp()
|
void |
tearDown()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATASOURCE_BEAN
public static final java.lang.String DATASOURCE_BEAN
- See Also:
- Constant Field Values
OJBHelper
public OJBHelper(java.util.Map context)
setUp
public void setUp()
throws java.lang.Exception
- Specified by:
setUp
in interface TestHelper
- Overrides:
setUp
in class DatasourceHelper
- Throws:
java.lang.Exception
tearDown
public void tearDown()
throws java.lang.Exception
- Specified by:
tearDown
in interface TestHelper
- Overrides:
tearDown
in class DatasourceHelper
- Throws:
java.lang.Exception
getTxProxiedObject
public java.lang.Object getTxProxiedObject(java.lang.Object object,
java.lang.String[] interfacesToProxyAs)
throws java.lang.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:
java.lang.Exception
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.