Package org.hibernate.ogm.cfg.impl

Examples of org.hibernate.ogm.cfg.impl.ConfigurableImpl


   * @return a context object containing the options set via the given configurator
   */
  private static <D extends DatastoreConfiguration<G>, G extends GlobalContext<?, ?>> AppendableConfigurationContext invokeOptionConfigurator(
      OptionConfigurator configurator) {

    ConfigurableImpl configurable = new ConfigurableImpl();
    configurator.configure( configurable );
    return configurable.getContext();
  }
View Full Code Here


   * sure that this matches the underlying datastore provider.
   * @return a context object representing the entry point into the fluent configuration API.
   */
  @Override
  public <D extends DatastoreConfiguration<G>, G extends GlobalContext<?, ?>> G configureOptionsFor(Class<D> datastoreType) {
    ConfigurableImpl configurable = new ConfigurableImpl();
    getProperties().put( InternalProperties.OGM_OPTION_CONTEXT, configurable.getContext() );

    return configurable.configureOptionsFor( datastoreType );
  }
View Full Code Here

   * sure that this matches the underlying datastore provider.
   * @return a context object representing the entry point into the fluent configuration API.
   */
  @Override
  public <D extends DatastoreConfiguration<G>, G extends GlobalContext<?, ?>> G configureOptionsFor(Class<D> datastoreType) {
    ConfigurableImpl configurable = new ConfigurableImpl();
    getProperties().put( InternalProperties.OGM_OPTION_CONTEXT, configurable.getContext() );

    return configurable.configureOptionsFor( datastoreType );
  }
View Full Code Here

   * @return a context object containing the options set via the given configurator
   */
  private static <D extends DatastoreConfiguration<G>, G extends GlobalContext<?, ?>> AppendableConfigurationContext invokeOptionConfigurator(
      OptionConfigurator configurator) {

    ConfigurableImpl configurable = new ConfigurableImpl();
    configurator.configure( configurable );
    return configurable.getContext();
  }
View Full Code Here

   * sure that this matches the underlying datastore provider.
   * @return a context object representing the entry point into the fluent configuration API.
   */
  @Override
  public <D extends DatastoreConfiguration<G>, G extends GlobalContext<?, ?>> G configureOptionsFor(Class<D> datastoreType) {
    ConfigurableImpl configurable = new ConfigurableImpl();
    getProperties().put( InternalProperties.OGM_OPTION_CONTEXT, configurable.getContext() );

    return configurable.configureOptionsFor( datastoreType );
  }
View Full Code Here

   * @return a context object containing the options set via the given configurator
   */
  private static <D extends DatastoreConfiguration<G>, G extends GlobalContext<?, ?>> AppendableConfigurationContext invokeOptionConfigurator(
      OptionConfigurator configurator) {

    ConfigurableImpl configurable = new ConfigurableImpl();
    configurator.configure( configurable );
    return configurable.getContext();
  }
View Full Code Here

   *
   * @param configurator the configurator to invoke
   * @return a context object containing the options set via the given configurator
   */
  private <D extends DatastoreConfiguration<G>, G extends GlobalContext<?, ?>> OptionsServiceContext invoke(OptionConfigurator configurator) {
    ConfigurableImpl configurable = new ConfigurableImpl();
    configurator.configure( configurable );

    return configurable.getContext();
  }
View Full Code Here

   * sure that this matches the underlying datastore provider.
   * @return a context object representing the entry point into the fluent configuration API.
   */
  @Override
  public <D extends DatastoreConfiguration<G>, G extends GlobalContext<?, ?>> G configureOptionsFor(Class<D> datastoreType) {
    ConfigurableImpl configurable = new ConfigurableImpl();
    getProperties().put( InternalProperties.OGM_OPTION_CONTEXT, configurable.getContext() );

    return configurable.configureOptionsFor( datastoreType );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.ogm.cfg.impl.ConfigurableImpl

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.