1 16 17 package org.springframework.orm.ojb; 18 19 import org.apache.ojb.broker.PersistenceBroker; 20 21 import org.springframework.transaction.support.ResourceHolderSupport; 22 import org.springframework.util.Assert; 23 24 36 public class PersistenceBrokerHolder extends ResourceHolderSupport { 37 38 private final PersistenceBroker persistenceBroker; 39 40 public PersistenceBrokerHolder(PersistenceBroker persistenceBroker) { 41 Assert.notNull(persistenceBroker, "PersistenceBroker must not be null"); 42 this.persistenceBroker = persistenceBroker; 43 } 44 45 public PersistenceBroker getPersistenceBroker() { 46 return persistenceBroker; 47 } 48 49 } 50 | Popular Tags |