Vote count:
0
here is my ConfigUpdater class
private final class ConfigUpdater implements ManagedService {
@SuppressWarnings("rawtypes")
@Override
public void updated(Dictionary config) throws ConfigurationException {
if (config == null) {
return;
}
String title = ((String)config.get("title"));
}
}
My question is how can i access String title in any other class ? or how can i get config dictionary in any other class... Method updated will only be called when a config file is changed... once it is changed how can access its data in other class ?
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire