* @version $Rev: 670115 $ $Date: 2008-06-20 20:48:40 -0500 (Fri, 20 Jun 2008) $
*/
public class DataSourceFactory {
public static DataSource create(boolean managed){
if (managed){
XAResourceWrapper xaResourceWrapper = SystemInstance.get().getComponent(XAResourceWrapper.class);
if (xaResourceWrapper != null) {
return new ManagedDataSourceWithRecovery(xaResourceWrapper);
} else {
return new BasicManagedDataSource();
}