Skip to content

Commit

Permalink
Introduced security checks in InMem DB.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmihajlovski committed Jan 21, 2015
1 parent a40e29f commit caa6533
Show file tree
Hide file tree
Showing 7 changed files with 256 additions and 171 deletions.
Expand Up @@ -57,7 +57,7 @@ public class DbImpl extends NamedActivity<Database> implements Database {


public DbImpl(String name, String filename) { public DbImpl(String name, String filename) {
super(name); super(name);
this.inmem = new InMem(filename, new JacksonEntitySerializer(this), constructor, REL_CLASSES); this.inmem = new InMem(filename, new JacksonEntitySerializer(this), constructor, REL_CLASSES, null);
this.schema = new DbSchemaImpl(); this.schema = new DbSchemaImpl();
} }


Expand Down
Expand Up @@ -37,7 +37,7 @@ public static void main(String[] args) {
Conf.args(args); Conf.args(args);


final InMem db = new InMem(null, new JacksonEntitySerializer(null), new DbEntityConstructor(null), final InMem db = new InMem(null, new JacksonEntitySerializer(null), new DbEntityConstructor(null),
Collections.EMPTY_SET); Collections.EMPTY_SET, null);


int size = Conf.option("size", 100000); int size = Conf.option("size", 100000);
int loops = Conf.option("loops", 100); int loops = Conf.option("loops", 100);
Expand Down
5 changes: 5 additions & 0 deletions rapidoid-inmem/pom.xml
Expand Up @@ -17,6 +17,11 @@
<artifactId>rapidoid-beany</artifactId> <artifactId>rapidoid-beany</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.rapidoid</groupId>
<artifactId>rapidoid-security</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies> </dependencies>


</project> </project>

0 comments on commit caa6533

Please sign in to comment.