@Override public String getProperty(String name) { String val = threadProperties.get().getProperty(name); if (val == null) { val = globalProperties.getProperty(name); } return val; } }
/** * Set a property value for only the current thread. This value will override * any global property value of the same name. * * @param property * @param value */ public void setThreadProperty(String property, String value) { threadProperties.get().setProperty(property, value); } }
/** * Set a property value for only the current thread. This value will override * any global property value of the same name. * * @param property * @param value */ public void setThreadProperty(String property, String value) { threadProperties.get().setProperty(property, value); } }
/** * Set a property value globally. This value will be overridden by any * thread-specific property value of the same name. * * @param property * @param value */ public void setGlobalProperty(String property, String value) { globalProperties.setProperty(property, value); }
@Override public String getProperty(String name) { String val = threadProperties.get().getProperty(name); if (val == null) { val = globalProperties.getProperty(name); } return val; } }
/** * Set a property value for only the current thread. This value will override * any global property value of the same name. * * @param property * @param value */ public void setThreadProperty(String property, String value) { threadProperties.get().setProperty(property, value); } }
@Override public String getProperty(String name) { String val = threadProperties.get().getProperty(name); if (val == null) { val = globalProperties.getProperty(name); } return val; } }
@Override protected PropertiesImpl initialValue() { return new PropertiesImpl(); } };
ServerGwtBridge() { threadProperties = new ThreadLocal<PropertiesImpl>() { @Override protected PropertiesImpl initialValue() { return new PropertiesImpl(); } }; // register built-in instantiators register(Object.class, new ObjectNew()); register(Localizable.class, new LocalizableInstantiator()); }
@Override protected PropertiesImpl initialValue() { return new PropertiesImpl(); } };
ServerGwtBridge() { threadProperties = new ThreadLocal<PropertiesImpl>() { @Override protected PropertiesImpl initialValue() { return new PropertiesImpl(); } }; // register built-in instantiators register(Object.class, new ObjectNew()); register(Localizable.class, new LocalizableInstantiator()); }
/** * Set a property value globally. This value will be overridden by any * thread-specific property value of the same name. * * @param property * @param value */ public void setGlobalProperty(String property, String value) { globalProperties.setProperty(property, value); }
ServerGwtBridge() { threadProperties = new ThreadLocal<PropertiesImpl>() { @Override protected PropertiesImpl initialValue() { return new PropertiesImpl(); } }; // register built-in instantiators register(Object.class, new ObjectNew()); register(Localizable.class, new LocalizableInstantiator()); }
@Override protected PropertiesImpl initialValue() { return new PropertiesImpl(); } };
/** * Set a property value globally. This value will be overridden by any * thread-specific property value of the same name. * * @param property * @param value */ public void setGlobalProperty(String property, String value) { globalProperties.setProperty(property, value); }