1 18 package org.apache.activemq.store; 19 20 import org.apache.activemq.store.journal.JournalPersistenceAdapterFactory; 21 import org.springframework.beans.factory.FactoryBean; 22 23 30 public class PersistenceAdapterFactoryBean extends JournalPersistenceAdapterFactory implements FactoryBean { 31 32 private PersistenceAdapter persistenceAdaptor; 33 34 public Object getObject() throws Exception { 35 if (persistenceAdaptor == null) { 36 persistenceAdaptor = createPersistenceAdapter(); 37 } 38 return persistenceAdaptor; 39 } 40 41 public Class getObjectType() { 42 return PersistenceAdapter.class; 43 } 44 45 public boolean isSingleton() { 46 return false; 47 } 48 49 } 50 | Popular Tags |