The class org.jboss.as.web.deployment.WebDeploymentService:
class WebDeploymentService implements Service<Context> {
...
private final InjectedValue<Realm> realm = new InjectedValue<Realm>();
public synchronized void start(StartContext startContext) throws StartException {
...
context.setRealm(realm.getValue());
...
}
...
}
We can see "context.setRealm(realm.getValue())"
Then how should i inject a security realm?
Thanks in advance