* Note: an alternative design would be to have a 1-arg constructor, but the
* convention for installers is to make them no-arg.
*/
// {{ AuthenticationManagerInstaller
public AuthenticationManagerInstaller addAuthenticatorAnnotatedOn(final Class<?> javaClass) throws InstantiationException, IllegalAccessException {
final Authenticator authenticatorAnnotation = javaClass.getAnnotation(Authenticator.class);
if (authenticatorAnnotation != null) {
return addAuthenticatorRepresentedBy(authenticatorAnnotation);
} else {
return new NoopAuthenticationManagerInstaller();
}