Quantcast

Mybatis Guice - Provide methods for settings logImpl, proxyFactory, jdbcTypeForNull, ...

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Mybatis Guice - Provide methods for settings logImpl, proxyFactory, jdbcTypeForNull, ...

xeredi

Hi.


In Mybatis Guice, I found methods to initialize a MyBatisModule. For example:

  • method "useCacheEnabled" for the setting "cacheEnabled"

But I can't find methods for settings:

  • logImpl
  • proxyFactory
  • jdbcTypeForNull
  • ...

Is there a way to modify this settings?

Thank you very much

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Mybatis Guice - Provide methods for settings logImpl, proxyFactory, jdbcTypeForNull, ...

Poitras Christian
Hi,

Providing setters for all settings would be a pain to maintain and would only work with the most recent version of MyBatis. To provide flexibility, MyBatis-Guice now uses ConfigurationSetting interface.

new MyBatisModule() {
  protected void initialize() {
    bindConfigurationSettings(configuration -> {
      configuration.setLogImpl(Slf4jImpl.class);
      // other configurations.
    });
  }
}

Christian

De : <[hidden email]<mailto:[hidden email]>> on behalf of xeredi <[hidden email]<mailto:[hidden email]>>
Répondre à : "[hidden email]<mailto:[hidden email]>" <[hidden email]<mailto:[hidden email]>>
Date : Thursday, January 5, 2017 at 8:47 AM
À : mybatis-user <[hidden email]<mailto:[hidden email]>>
Objet : Mybatis Guice - Provide methods for settings logImpl, proxyFactory, jdbcTypeForNull, ...


Hi.


In Mybatis Guice, I found methods to initialize a MyBatisModule. For example:

  *   method "useCacheEnabled" for the setting "cacheEnabled"

But I can't find methods for settings:

  *   logImpl
  *   proxyFactory
  *   jdbcTypeForNull
  *   ...

Is there a way to modify this settings?

Thank you very much

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]<mailto:[hidden email]>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Mybatis Guice - Provide methods for settings logImpl, proxyFactory, jdbcTypeForNull, ...

xeredi
Hi. In mybatis-guice release 3.8 I can find method "bindConfigurationSettings". Is there a newer release? Thank you very much.

El jueves, 5 de enero de 2017, 15:14:40 (UTC+1), [hidden email] escribió:
Hi,

Providing setters for all settings would be a pain to maintain and would only work with the most recent version of MyBatis. To provide flexibility, MyBatis-Guice now uses ConfigurationSetting interface.

new MyBatisModule() {
  protected void initialize() {
    bindConfigurationSettings(configuration -> {
      configuration.setLogImpl(Slf4jImpl.class);
      // other configurations.
    });
  }
}

Christian

De : <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Kif6fk-3BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybati...@...<mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Kif6fk-3BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybati...@googlegroups.com>> on behalf of xeredi <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Kif6fk-3BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">xer...@...<mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Kif6fk-3BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">xeredi@...>>
Répondre à : "<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Kif6fk-3BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybati...@...<mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Kif6fk-3BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybati...@googlegroups.com>" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Kif6fk-3BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybati...@...<mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Kif6fk-3BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybati...@googlegroups.com>>
Date : Thursday, January 5, 2017 at 8:47 AM
À : mybatis-user <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Kif6fk-3BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybati...@...<mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Kif6fk-3BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybati...@googlegroups.com>>
Objet : Mybatis Guice - Provide methods for settings logImpl, proxyFactory, jdbcTypeForNull, ...


Hi.


In Mybatis Guice, I found methods to initialize a MyBatisModule. For example:

  *   method "useCacheEnabled" for the setting "cacheEnabled"

But I can't find methods for settings:

  *   logImpl
  *   proxyFactory
  *   jdbcTypeForNull
  *   ...

Is there a way to modify this settings?

Thank you very much

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Kif6fk-3BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybatis-user...@googlegroups.com<mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Kif6fk-3BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybatis-user+unsubscribe@googlegroups.com>.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Mybatis Guice - Provide methods for settings logImpl, proxyFactory, jdbcTypeForNull, ...

xeredi
Hi. In mybatis-guice release 3.8 I couldn't find method "bindConfigurationSettings". Is there a newer release? Thank you very much.
 
Hi. In mybatis-guice release 3.8 I couldn't find method "bindConfigurationSettings". Is there a newer release? Thank you very much.

El jueves, 5 de enero de 2017, 15:14:40 (UTC+1), [hidden email] escribió:
Hi,

Providing setters for all settings would be a pain to maintain and would only work with the most recent version of MyBatis. To provide flexibility, MyBatis-Guice now uses ConfigurationSetting interface.

new MyBatisModule() {
  protected void initialize() {
    bindConfigurationSettings(configuration -> {
      configuration.setLogImpl(Slf4jImpl.class);
      // other configurations.
    });
  }
}

Christian

De : <[hidden email]<mailto:mybati...@googlegroups.com>> on behalf of xeredi <[hidden email]<mailto:xered[hidden email]>>
Répondre à : "[hidden email]<mailto:mybati...@googlegroups.com>" <[hidden email]<mailto:mybati...@googlegroups.com>>
Date : Thursday, January 5, 2017 at 8:47 AM
À : mybatis-user <[hidden email]<mailto:mybati...@googlegroups.com>>
Objet : Mybatis Guice - Provide methods for settings logImpl, proxyFactory, jdbcTypeForNull, ...


Hi.


In Mybatis Guice, I found methods to initialize a MyBatisModule. For example:

  *   method "useCacheEnabled" for the setting "cacheEnabled"

But I can't find methods for settings:

  *   logImpl
  *   proxyFactory
  *   jdbcTypeForNull
  *   ...

Is there a way to modify this settings?

Thank you very much

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com<mailto:mybatis-user+[hidden email]>.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Mybatis Guice - Provide methods for settings logImpl, proxyFactory, jdbcTypeForNull, ...

Poitras Christian
Hi,

Sorry, the name of the method is bindConfigurationSetting().

https://github.com/mybatis/guice/blob/mybatis-guice-3.8/src/main/java/org/mybatis/guice/MyBatisModule.java#L259

Be aware that version 3.8 does not support binding properties with a java.util.Properties object. That functionality will be restored in version 3.9 that should be released in the next few days.

Christian

De : <[hidden email]<mailto:[hidden email]>> on behalf of xeredi <[hidden email]<mailto:[hidden email]>>
Répondre à : "[hidden email]<mailto:[hidden email]>" <[hidden email]<mailto:[hidden email]>>
Date : Thursday, January 5, 2017 at 10:55 AM
À : mybatis-user <[hidden email]<mailto:[hidden email]>>
Objet : Re: Mybatis Guice - Provide methods for settings logImpl, proxyFactory, jdbcTypeForNull, ...

Hi. In mybatis-guice release 3.8 I couldn't find method "bindConfigurationSettings". Is there a newer release? Thank you very much.

Hi. In mybatis-guice release 3.8 I couldn't find method "bindConfigurationSettings". Is there a newer release? Thank you very much.

El jueves, 5 de enero de 2017, 15:14:40 (UTC+1), [hidden email] escribió:
Hi,

Providing setters for all settings would be a pain to maintain and would only work with the most recent version of MyBatis. To provide flexibility, MyBatis-Guice now uses ConfigurationSetting interface.

new MyBatisModule() {
  protected void initialize() {
    bindConfigurationSettings(configuration -> {
      configuration.setLogImpl(Slf4jImpl.class);
      // other configurations.
    });
  }
}

Christian

De : <[hidden email]<mailto:[hidden email]>> on behalf of xeredi <[hidden email]<mailto:[hidden email]>>
Répondre à : "[hidden email]<mailto:[hidden email]>" <[hidden email]<mailto:[hidden email]>>
Date : Thursday, January 5, 2017 at 8:47 AM
À : mybatis-user <[hidden email]<mailto:[hidden email]>>
Objet : Mybatis Guice - Provide methods for settings logImpl, proxyFactory, jdbcTypeForNull, ...


Hi.


In Mybatis Guice, I found methods to initialize a MyBatisModule. For example:

  *   method "useCacheEnabled" for the setting "cacheEnabled"

But I can't find methods for settings:

  *   logImpl
  *   proxyFactory
  *   jdbcTypeForNull
  *   ...

Is there a way to modify this settings?

Thank you very much

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]<mailto:[hidden email]>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]<mailto:[hidden email]>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Mybatis Guice - Provide methods for settings logImpl, proxyFactory, jdbcTypeForNull, ...

xeredi
Thank you so much!!! Now it works.

El jueves, 5 de enero de 2017, 17:11:11 (UTC+1), [hidden email] escribió:
Hi,

Sorry, the name of the method is bindConfigurationSetting().

<a href="https://github.com/mybatis/guice/blob/mybatis-guice-3.8/src/main/java/org/mybatis/guice/MyBatisModule.java#L259" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmybatis%2Fguice%2Fblob%2Fmybatis-guice-3.8%2Fsrc%2Fmain%2Fjava%2Forg%2Fmybatis%2Fguice%2FMyBatisModule.java%23L259\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHnBD0B2OrgflgFr5GzfL2B-Y0z1Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmybatis%2Fguice%2Fblob%2Fmybatis-guice-3.8%2Fsrc%2Fmain%2Fjava%2Forg%2Fmybatis%2Fguice%2FMyBatisModule.java%23L259\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHnBD0B2OrgflgFr5GzfL2B-Y0z1Q&#39;;return true;">https://github.com/mybatis/guice/blob/mybatis-guice-3.8/src/main/java/org/mybatis/guice/MyBatisModule.java#L259

Be aware that version 3.8 does not support binding properties with a java.util.Properties object. That functionality will be restored in version 3.9 that should be released in the next few days.

Christian

De : <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="5bSNb6u9BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybati...@...<mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="5bSNb6u9BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybati...@googlegroups.com>> on behalf of xeredi <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="5bSNb6u9BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">xer...@...<mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="5bSNb6u9BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">xeredi@...>>
Répondre à : "<a href="javascript:" target="_blank" gdf-obfuscated-mailto="5bSNb6u9BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybati...@...<mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="5bSNb6u9BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybati...@googlegroups.com>" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="5bSNb6u9BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybati...@...<mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="5bSNb6u9BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybati...@googlegroups.com>>
Date : Thursday, January 5, 2017 at 10:55 AM
À : mybatis-user <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="5bSNb6u9BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybati...@...<mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="5bSNb6u9BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybati...@googlegroups.com>>
Objet : Re: Mybatis Guice - Provide methods for settings logImpl, proxyFactory, jdbcTypeForNull, ...

Hi. In mybatis-guice release 3.8 I couldn't find method "bindConfigurationSettings". Is there a newer release? Thank you very much.

Hi. In mybatis-guice release 3.8 I couldn't find method "bindConfigurationSettings". Is there a newer release? Thank you very much.

El jueves, 5 de enero de 2017, 15:14:40 (UTC+1), [hidden email] escribió:
Hi,

Providing setters for all settings would be a pain to maintain and would only work with the most recent version of MyBatis. To provide flexibility, MyBatis-Guice now uses ConfigurationSetting interface.

new MyBatisModule() {
  protected void initialize() {
    bindConfigurationSettings(configuration -> {
      configuration.setLogImpl(Slf4jImpl.class);
      // other configurations.
    });
  }
}

Christian

De : <[hidden email]<mailto:mybati...@googlegroups.com>> on behalf of xeredi <[hidden email]<mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="5bSNb6u9BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">xeredi@...>>
Répondre à : "[hidden email]<mailto:mybati...@googlegroups.com>" <[hidden email]<mailto:mybati...@googlegroups.com>>
Date : Thursday, January 5, 2017 at 8:47 AM
À : mybatis-user <[hidden email]<mailto:mybati...@googlegroups.com>>
Objet : Mybatis Guice - Provide methods for settings logImpl, proxyFactory, jdbcTypeForNull, ...


Hi.


In Mybatis Guice, I found methods to initialize a MyBatisModule. For example:

  *   method "useCacheEnabled" for the setting "cacheEnabled"

But I can't find methods for settings:

  *   logImpl
  *   proxyFactory
  *   jdbcTypeForNull
  *   ...

Is there a way to modify this settings?

Thank you very much

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com<mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="5bSNb6u9BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybatis-user+unsubscribe@...>.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="5bSNb6u9BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybatis-user...@googlegroups.com<mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="5bSNb6u9BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mybatis-user+unsubscribe@googlegroups.com>.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...