broker.addStartupActor(event.getBean(), service.name(), service
.threadMax());
}
if (annotated.isAnnotationPresent(AdminService.class)) {
AdminService service = annotated.getAnnotation(AdminService.class);
Server server = Server.getCurrent();
if (server == null) {
throw new ConfigException(L
.l("@AdminService requires an active Resin Server."));
}
if (!server.isWatchdog()) {
HempBroker broker = (HempBroker) server.getAdminBroker();
broker.addStartupActor(event.getBean(), service.name(), service
.threadMax());
}
}
}