org.apache.metamodel.spring
Interface DataContextFactoryBeanDelegate

All Known Implementing Classes:
AbstractDataContextFactoryBeanDelegate, CouchDbDataContextFactoryBeanDelegate, CsvDataContextFactoryBeanDelegate, ExcelDataContextFactoryBeanDelegate, JdbcDataContextFactoryBeanDelegate, MongoDbDataContextFactoryBeanDelegate, PojoDataContextFactoryBeanDelegate

public interface DataContextFactoryBeanDelegate

Component responsible for instantiating a DataContext given the properties of a DataContextFactoryBean. This component helps separate the configuration code (in DataContextFactoryBean) from the actual instantiation of objects. This is necesary to ensure that the DataContextFactoryBean is functional for only a subset of MetaModel's modules, since otherwise import statements would hinder use of the class when not all MetaModel modules are available.


Method Summary
 DataContext createDataContext(DataContextFactoryParameters params)
          Creates the particular DataContext object.
 

Method Detail

createDataContext

DataContext createDataContext(DataContextFactoryParameters params)
Creates the particular DataContext object.

Parameters:
params - the DataContextFactoryBean with properties set as per the spring configuration.
Returns:
a non-null DataContext object, built with the properties set on the DataContextFactoryBean


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.