*/publicstaticvoiddocumentEndpoints(Predicate<ClassPath.ClassInfo> filter, PrintWriter out)throwsException{finalClassLoader classLoader = Thread.currentThread().getContextClassLoader();finalClassPath classPath = ClassPath.from(classLoader);finalImmutableSet<ClassPath.ClassInfo> allClasses = classPath.getAl...
getClassesWithAnnotation(Module.class.getName()); for (ClassInfo info : classInfos) { if (StringUtils.equals(info.getSimpleName(), project)) { return info.getName(); } } return null; } Example 4Source File: ResourceFactory.java From o2oa with GNU Affero General Public License v3.0 5...
Route annotation = c.getAnnotation(Route.class);try{if(annotation.method().length >0) register.registerRouter(annotation.method()[0], annotation.path(), (Handler<RoutingContext>) c.newInstance());elseregister.registerRouter(annotation.path(), (Handler<RoutingContext>) c.newInstance()); }catch(Ins...
forJavaClassPath()) .setScanners(new FieldAnnotationsScanner())); return reflections.getFieldsAnnotatedWith(Register.class); } 代码示例来源:origin: io.teecube.t3/t3-common public static <A extends Annotation> Set<Field> getFieldsAnnotatedWith(Class<?> fromClass, Class<A> annotationClass, Class...
public Annotation[] getAnnotations()Description copied from interface: <java_se_link>java.lang.reflect.AnnotatedElement#getAnnotations--,AnnotatedElement</java_se_link>Returns annotations that are present on this element. If there are no annotations present on this element, the return value is an ...
Annotation ApiVersionSupported App AppendToFolderField AppendToItemField ApplicationRoles ApplyConversationAction ApplyConversationActionResponse ApplyConversationActionResponseMessage AppMarketplaceUrl AppointmentReplyTime AppointmentSequenceNumber AppointmentState ApprovalDecision ApprovalDecisionMaker ApprovalDecisionTime Appro...
String superclass = sourceClass.getMetadata().getSuperClassName();if(superclass != null && !superclass.startsWith("java") &&!this.knownSuperclasses.containsKey(superclass)) { origin:org.wicketstuff/annotation MatchingResources.getAnnotatedMatches(...) ...
These optional settings are for the kube-state-metrics pod that is deployed with the addon. See aka.ms/AzureManagedPrometheus-optional-parameters for details. Expand table NameTypeDescription metricAnnotationsAllowList string Comma-separated list of Kubernetes annotation keys that will be used in ...
Java反射相关类中存在大量Declared方法,例如: Class userClass = User.class; Method[] methods1=userClass.getMethods(); Method[] methods2=userClass.getDeclaredMethods(); Method getUsrMethod= userClass.getDeclaredMethod("getUsername"); Annotation[] annotation1=getUsrMethod.getAnnotations(); ...
getClasses(null, "NAMED", name, "ANNOTATED", "aQute.bnd.annotation.component.Component"); for (Clazz clazz : classes) { // // Generate an error on each class that uses the annotations SetLocation loc = error(Constants.SERVICE_COMPONENT + " refers to %s that is annotated with the ...