Package org.hibernate.ogm.options.navigation.impl

Examples of org.hibernate.ogm.options.navigation.impl.AppendableConfigurationContext


  @Before
  public void setupConfigurationMapAndContexts() {
    cfg = new HashMap<String, Object>();
    cfg.put( OgmProperties.DATABASE, "database" );

    context = new AppendableConfigurationContext();
    configuration = new MongoDB().getConfigurationBuilder( new ConfigurationContextImpl( context ) );

    reader = new ConfigurationPropertyReader( cfg, new ClassLoaderServiceImpl() );
  }
View Full Code Here


  private MongoDBGlobalContext mongoOptions;
  private AppendableConfigurationContext context;

  @Before
  public void setupBuilder() {
    context = new AppendableConfigurationContext();
    mongoOptions = new MongoDB().getConfigurationBuilder( new ConfigurationContextImpl( context ) );
  }
View Full Code Here

  private OptionValueSources() {
  }

  public static List<OptionValueSource> getDefaultSources(ConfigurationPropertyReader propertyReader) {
    AppendableConfigurationContext programmaticOptions = propertyReader.property( InternalProperties.OGM_OPTION_CONTEXT, AppendableConfigurationContext.class )
        .instantiate()
        .getValue();
    OptionConfigurator configurator = propertyReader.property( OgmProperties.OPTION_CONFIGURATOR, OptionConfigurator.class )
        .instantiate()
        .getValue();
View Full Code Here

  private MongoDBGlobalContext mongoOptions;
  private AppendableConfigurationContext context;

  @Before
  public void setupBuilder() {
    context = new AppendableConfigurationContext();
    mongoOptions = new MongoDB().getConfigurationBuilder( new ConfigurationContextImpl( context ) );
  }
View Full Code Here

*/
public class AssociationStorageOptionTest {

  @Test
  public void testAssociationStorageMappingOption() throws Exception {
    AppendableConfigurationContext context = new AppendableConfigurationContext();
    ConfigurationContext configurationContext = new ConfigurationContextImpl( context );

    new MongoDB().getConfigurationBuilder( configurationContext )
      .entity( ExampleForMongoDBMapping.class )
        .property( "content", ElementType.FIELD )
View Full Code Here

  private AppendableConfigurationContext optionsServiceContext;
  private Map<String, Object> cfg;

  @Before
  public void setupContext() {
    optionsServiceContext = new AppendableConfigurationContext();
    cfg = newHashMap();
    cfg.put( InternalProperties.OGM_OPTION_CONTEXT, optionsServiceContext );
  }
View Full Code Here

  private static final Log log = LoggerFactory.make();
  private final AppendableConfigurationContext context;

  public ConfigurableImpl() {
    context = new AppendableConfigurationContext();
  }
View Full Code Here

  private SampleGlobalContext configuration;
  private AppendableConfigurationContext configurationContext;

  @Before
  public void setupContexts() {
    configurationContext = new AppendableConfigurationContext();
    configuration = SampleOptionModel.createGlobalContext( new ConfigurationContextImpl( configurationContext ) );
  }
View Full Code Here

  private static final Log log = LoggerFactory.make();
  private final AppendableConfigurationContext context;

  public ConfigurableImpl() {
    context = new AppendableConfigurationContext();
  }
View Full Code Here

  private OptionValueSources() {
  }

  public static List<OptionValueSource> getDefaultSources(ConfigurationPropertyReader propertyReader) {
    AppendableConfigurationContext programmaticOptions = propertyReader.property( InternalProperties.OGM_OPTION_CONTEXT, AppendableConfigurationContext.class )
        .instantiate()
        .getValue();
    OptionConfigurator configurator = propertyReader.property( OgmProperties.OPTION_CONFIGURATOR, OptionConfigurator.class )
        .instantiate()
        .getValue();
View Full Code Here

TOP

Related Classes of org.hibernate.ogm.options.navigation.impl.AppendableConfigurationContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.