/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public class GuiceVariableResolver extends VariableResolver { private final VariableResolver wrapped; public GuiceVariableResolver(VariableResolver wrapped) { if (wrapped == null) this.wrapped = wrapped; } @SuppressWarnings("unchecked") @Override if (resolved != null) { Injector injector = (Injector) map.get(Injector.class.getName()); if (injector == null) + " key '" + Injector.class.getName() + "'"); injector.injectMembers(resolved); } return resolved; } }