Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
package org.jlab.utils;

import org.jlab.jnp.hipo4.data.SchemaFactory;

/**
*
* @author gavalian
* @author kenjo
*/
public class CLASResources {


private static volatile SchemaFactory FULL_SCHEMA = null;

public static SchemaFactory getFullSchema() {
synchronized (FULL_SCHEMA) {
if (FULL_SCHEMA == null) {
FULL_SCHEMA = new SchemaFactory();
FULL_SCHEMA.initFromDirectory(getResourcePath("etc/bankdefs/hipo4"));
}
}
SchemaFactory s = new SchemaFactory();
s.copy(FULL_SCHEMA);
return s;
}

public static String getResourcePath(String resource){
String CLAS12DIR = System.getenv("CLAS12DIR");
String CLAS12DIRPROP = System.getProperty("CLAS12DIR");
Expand Down Expand Up @@ -44,4 +60,5 @@ public static String getEnvironmentVariable(String envvarname){

return null;
}

}
Loading