@Override public String toString() { return "Config{} " + super.toString(); } }
@Override public void run() { while (fileWatcher.processEvents()) { } } });
public CollectionResponse build() { CollectionResponse response = new CollectionResponse(); response.setEntities(entities); return response; } }
public void validate () throws ComponentConfigException { validateCommon(); validateBooleanField(); validateStringField(); validateNumberField(); validateObjectField(); }
public static <T> T getEntity(WebTarget target, Class<T> clazz) { return getEntity(target, DEFAULT_MEDIA_TYPE, clazz); }
@Override public String get(String key) { return (String) super.get(key); }
public static <T> T postForm(WebTarget target, MultivaluedMap<String, String> form, Class<T> clazz) { return postForm(target, form, DEFAULT_MEDIA_TYPE, clazz); }
public static <T> List<T> getEntities(WebTarget target, String fieldName, Class<T> clazz) { return getEntities(target, fieldName, DEFAULT_MEDIA_TYPE, clazz); }
/** * Construct a Config object * from {@link Properties} * * @param properties the properties */ public Config(Properties properties) { fromProperties(properties); }
public Object get(String key) { return getObject(key); }
public static <T> T getEntity(WebTarget target, String fieldName, Class<T> clazz) { return getEntity(target, fieldName, DEFAULT_MEDIA_TYPE, clazz); }
public int getInt(String key, int defaultValue) { return (int) get(key, defaultValue); }
public static <T> List<T> getEntities(WebTarget target, Class<T> clazz) { return getEntities(target, DEFAULT_MEDIA_TYPE, clazz); }
public String getString(String key) { return (String) get(key); }
public double getDouble(String key, double defaultValue) { return (double) get(key, defaultValue); }
public boolean getBoolean(String key, boolean defaultValue) { return (boolean) get(key, defaultValue); }
public long getLong(String key) { return (long) get(key); }
public long getLong(String key, long defaultValue) { return (long) get(key, defaultValue); }
public boolean getBoolean(String key) { return (boolean) get(key); }