@Override public Object getProperty(String key, Object defaultValue) { return runtime.getProperty(key, defaultValue); } }
private void activateInternal() { Runtime runtime = this.runtime.get(); if (runtime.getProperty(RUNTIME_IDENTITY) == null) { System.setProperty(RUNTIME_IDENTITY, "wildfly"); } if (runtime.getProperty(RUNTIME_HOME_DIR) == null) { System.setProperty(RUNTIME_HOME_DIR, System.getProperty("jboss.home.dir")); } if (runtime.getProperty(RUNTIME_DATA_DIR) == null) { System.setProperty(RUNTIME_DATA_DIR, runtime.getProperty(RUNTIME_HOME_DIR) + "/standalone/data"); } if (runtime.getProperty(RUNTIME_CONF_DIR) == null) { System.setProperty(RUNTIME_CONF_DIR, runtime.getProperty(RUNTIME_HOME_DIR) + "/standalone/configuration"); } }
private void activateInternal() { Runtime runtime = this.runtime.get(); if (runtime.getProperty(RUNTIME_IDENTITY) == null) { System.setProperty(RUNTIME_IDENTITY, "tomcat"); } if (runtime.getProperty(RUNTIME_HOME_DIR) == null) { System.setProperty(RUNTIME_HOME_DIR, System.getProperty("catalina.home")); } if (runtime.getProperty(RUNTIME_DATA_DIR) == null) { System.setProperty(RUNTIME_DATA_DIR, runtime.getProperty(RUNTIME_HOME_DIR) + "/work"); } if (runtime.getProperty(RUNTIME_CONF_DIR) == null) { System.setProperty(RUNTIME_CONF_DIR, runtime.getProperty(RUNTIME_HOME_DIR) + "/conf"); } }
private void setUp() { Runtime runtime = this.runtime.get(); if (runtime.getProperty(RUNTIME_IDENTITY) == null) { System.setProperty(RUNTIME_IDENTITY, "tomcat"); } if (runtime.getProperty(RUNTIME_HOME_DIR) == null) { System.setProperty(RUNTIME_HOME_DIR, System.getProperty("catalina.home")); } if (runtime.getProperty(RUNTIME_DATA_DIR) == null) { System.setProperty(RUNTIME_DATA_DIR, runtime.getProperty(RUNTIME_HOME_DIR) + "/work"); } if (runtime.getProperty(RUNTIME_CONF_DIR) == null) { System.setProperty(RUNTIME_CONF_DIR, runtime.getProperty(RUNTIME_HOME_DIR) + "/conf"); } }
protected String getPropertyInternal(String key, String defaultValue) { return (String) runtime.get().getProperty(key, defaultValue); }
@Override public String getProperty(String key) { Object value = getRuntime().getProperty(key); return (value instanceof String ? (String) value : null); }
protected String getPropertyInternal(String key, String defaultValue) { return (String) runtime.get().getProperty(key, defaultValue); }
protected String getPropertyInternal(String key, String defaultValue) { return (String) runtime.get().getProperty(key, defaultValue); }
private String getPropertyInternal(String key, String defaultValue) { return (String) runtime.get().getProperty(key, defaultValue); }
public static RuntimeType getRuntimeType(Runtime runtime) { IllegalArgumentAssertion.assertNotNull(runtime, "runtime"); Object type = runtime.getProperty(Constants.RUNTIME_TYPE); return RuntimeType.getRuntimeType((String) type); }
private String performCall(String path, Map<String, String> headers, long timeout, TimeUnit unit) throws Exception { Object port = RuntimeLocator.getRequiredRuntime().getProperty("org.osgi.service.http.port", "8080"); return HttpRequest.get("http://localhost:" + port + path, headers, timeout, unit); }