core/src/main/java/org/infinispan/persistence/factory/CacheStoreFactoryRegistry.java
/**
    * Creates new Object based on configuration.
    *
    * @param storeConfiguration Cache store configuration.
    * @return Instance created based on the configuration.
    * @throws org.infinispan.commons.CacheConfigurationException when the instance couldn't be created.
    */
Creates new Object based on configuration.
@param storeConfiguration Cache store configuration.
@return Instance created based on the configuration.
@throws org.infinispan.commons.CacheConfigurationException when the instance couldn't be created.
Creates new Object based on configuration . @param storeConfiguration Cache store configuration . @return Instance created based on the configuration . @throws org . infinispan . commons . CacheConfigurationException when the instance couldn ' t be created .
public Object createInstance(StoreConfiguration storeConfiguration) {
      for(CacheStoreFactory factory : factories) {
         Object instance = factory.createInstance(storeConfiguration);
         if(instance != null) {
            return instance;
         }
      }
      throw log.unableToInstantiateClass(storeConfiguration.getClass());
   }
public Object createInstance ( StoreConfiguration storeConfiguration ) { for ( CacheStoreFactory factory : factories ) { Object instance = factory . createInstance ( storeConfiguration ) ; if ( instance != null ) { return instance ; } } throw log . unableToInstantiateClass ( storeConfiguration . getClass ( ) ) ; }
Creates new Object based on configuration.
Creates new Object based on configuration .