]> gerrit.simantics Code Review - simantics/platform.git/blob - variable/StandardGraphPropertyFactory.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / variable / StandardGraphPropertyFactory.java
1 package org.simantics.db.layer0.variable;
2
3 import org.simantics.db.ReadGraph;
4 import org.simantics.db.Resource;
5 import org.simantics.db.exception.DatabaseException;
6
7 public class StandardGraphPropertyFactory implements GraphPropertyFactory {
8
9         public static final StandardGraphPropertyFactory INSTANCE = new StandardGraphPropertyFactory();
10         
11         @Override
12         public Variable create(ReadGraph graph, Variable parent, Resource property) throws DatabaseException {
13                 return new StandardGraphPropertyVariable(graph, parent, property);
14         }
15
16 }