cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject cayenne git commit: adding static factory method to the builder
Date Mon, 22 Aug 2016 11:19:22 GMT
Repository: cayenne
Updated Branches:
  refs/heads/master 865f04f56 -> 938fbb391


adding static factory method to the builder


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/938fbb39
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/938fbb39
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/938fbb39

Branch: refs/heads/master
Commit: 938fbb3915c8d423bae3ccb0fa6e86254228f585
Parents: 865f04f
Author: Andrus Adamchik <andrus@objectstyle.com>
Authored: Mon Aug 22 13:46:17 2016 +0300
Committer: Andrus Adamchik <andrus@objectstyle.com>
Committed: Mon Aug 22 13:46:17 2016 +0300

----------------------------------------------------------------------
 .../org/apache/cayenne/crypto/CryptoModuleBuilder.java  | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/938fbb39/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/CryptoModuleBuilder.java
----------------------------------------------------------------------
diff --git a/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/CryptoModuleBuilder.java
b/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/CryptoModuleBuilder.java
index 5839afe..8d19b85 100644
--- a/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/CryptoModuleBuilder.java
+++ b/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/CryptoModuleBuilder.java
@@ -18,10 +18,6 @@
  ****************************************************************/
 package org.apache.cayenne.crypto;
 
-import java.io.File;
-import java.net.MalformedURLException;
-import java.net.URL;
-
 import org.apache.cayenne.access.jdbc.reader.RowReaderFactory;
 import org.apache.cayenne.access.translator.batch.BatchTranslatorFactory;
 import org.apache.cayenne.crypto.batch.CryptoBatchTranslatorFactoryDecorator;
@@ -42,6 +38,10 @@ import org.apache.cayenne.di.Binder;
 import org.apache.cayenne.di.MapBuilder;
 import org.apache.cayenne.di.Module;
 
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+
 /**
  * A builder of a Cayenne DI module that will contain all extension to Cayenne
  * runtime needed to enable encryption of certain data columns. Builder allows
@@ -79,6 +79,10 @@ public class CryptoModuleBuilder {
 
     private boolean compress;
 
+    public static CryptoModuleBuilder builder() {
+        return new CryptoModuleBuilder();
+    }
+
     public CryptoModuleBuilder() {
 
         // init some sensible defaults that work in JVM without extra


Mime
View raw message