/** * Gets the value of a named configuration parameter. * * @param name * The parameter name. * @return String The value, null if undefined. */ public String getParameter(String name) { return getParameter(name, false); }
private TriplestoreConnector getConnector(Parameterized datastore) throws Exception { if (datastore == null) { throw new ModuleInitializationException("Specifed datastore " + "does not exist in fedora.fcfg", getRole()); } Map<String, String> config = datastore.getParameters(); // make sure path, if specified and relative, is translated // to an absolute path based on the value of FEDORA_HOME String path = config.get("path"); if (path != null) { config.put("path", datastore.getParameter("path", true)); } String className = config.get("connectorClassName"); if (className == null) { throw new ResourceIndexException("Required datastore parameter " + "is missing: connectorClassName"); } getServer().getStatusFile().append(ServerState.STARTING, "Initializing Triplestore"); return TriplestoreConnector.init(className, config); }
private TriplestoreConnector getConnector(Parameterized datastore) throws Exception { if (datastore == null) { throw new ModuleInitializationException("Specifed datastore " + "does not exist in fedora.fcfg", getRole()); } Map<String, String> config = datastore.getParameters(); // make sure path, if specified and relative, is translated // to an absolute path based on the value of FEDORA_HOME String path = config.get("path"); if (path != null) { config.put("path", datastore.getParameter("path", true)); } String className = config.get("connectorClassName"); if (className == null) { throw new ResourceIndexException("Required datastore parameter " + "is missing: connectorClassName"); } getServer().getStatusFile().append(ServerState.STARTING, "Initializing Triplestore"); return TriplestoreConnector.init(className, config); }
/** * Gets the value of a named configuration parameter. * * @param name * The parameter name. * @return String The value, null if undefined. */ public String getParameter(String name) { return getParameter(name, false); }