Examples of AnnotationClassFilter


Examples of br.net.woodstock.rockframework.core.reflection.impl.AnnotationClassFilter

    super();
  }

  public XmlDocument toXML(final String baseName) {
    Assert.notEmpty(baseName, "baseName");
    ClassFinder classFinder = new ClassFinderImpl(baseName, new AnnotationClassFilter(Entity.class));
    XmlDocument document = new XmlDocument(AnnotationToXML.XML_NAMESPACE, AnnotationToXML.XML_LOCATION, AnnotationToXML.XML_ROOT);
    XmlElement entityMappings = document.getRoot();

    for (Class<?> clazz : classFinder.getClasses()) {
      XmlElement entity = entityMappings.addElement("entity");
View Full Code Here

Examples of br.net.woodstock.rockframework.reflection.impl.AnnotationClassFilter

  }

  public static List<MenuItemBean> getMenu(final String baseName) {
    List<MenuItemBean> list = new ArrayList<MenuItemBean>();
    Map<String, MenuItemBean> cache = new HashMap<String, MenuItemBean>();
    ClassFinder finder = new ClassFinderImpl(baseName, new AnnotationClassFilter(MenuItem.class));
    Class<?>[] classes = finder.getClasses();

    for (Class<?> clazz : classes) {
      MenuItem menuItem = clazz.getAnnotation(MenuItem.class);
      MenuItemBean bean = new MenuItemBean(menuItem);
View Full Code Here

Examples of br.net.woodstock.rockframework.reflection.impl.AnnotationClassFilter

  private static final String  XML_ROOT    = "entity-mappings";

  public XmlDocument toXML(final String baseName) {
    Assert.notEmpty(baseName, "baseName");
    ClassFinder classFinder = new ClassFinderImpl(baseName, new AnnotationClassFilter(Entity.class));
    XmlDocument document = new XmlDocument(AnnotationToXML.XML_NAMESPACE, AnnotationToXML.XML_LOCATION, AnnotationToXML.XML_ROOT);
    XmlElement entityMappings = document.getRoot();

    for (Class<?> clazz : classFinder.getClasses()) {
      XmlElement entity = entityMappings.addElement("entity");
View Full Code Here

Examples of br.net.woodstock.rockframework.reflection.impl.AnnotationClassFilter

  }

  public static List<MenuItemBean> getMenu(final String baseName) {
    List<MenuItemBean> list = new ArrayList<MenuItemBean>();
    Map<String, MenuItemBean> cache = new HashMap<String, MenuItemBean>();
    ClassFinder finder = new ClassFinderImpl(baseName, new AnnotationClassFilter(MenuItem.class));
    Class<?>[] classes = finder.getClasses();

    for (Class<?> clazz : classes) {
      MenuItem menuItem = clazz.getAnnotation(MenuItem.class);
      MenuItemBean bean = new MenuItemBean(menuItem);
View Full Code Here

Examples of br.net.woodstock.rockframework.reflection.impl.AnnotationClassFilter

    super();
    this.baseName = baseName;
  }

  public XmlDocument toXML() {
    ClassFinder classFinder = new ClassFinderImpl(this.baseName, new AnnotationClassFilter(Entity.class));
    XmlDocument document = new XmlDocument(AnnotationToXML.XML_NAMESPACE, AnnotationToXML.XML_LOCATION, AnnotationToXML.XML_ROOT);
    XmlElement entityMappings = document.getRoot();

    for (Class<?> clazz : classFinder.getClasses()) {
      XmlElement entity = entityMappings.addElement("entity");
View Full Code Here

Examples of org.springframework.aop.support.annotation.AnnotationClassFilter

   * @param checkInherited      whether to explicitly check the superclasses and
   *                            interfaces for the annotation type as well (even if the annotation type
   *                            is not marked as inherited itself)
   */
  public MetaAnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType, boolean checkInherited) {
    this.classFilter = new AnnotationClassFilter(classAnnotationType, checkInherited);
    this.methodMatcher = MethodMatcher.TRUE;
  }
View Full Code Here

Examples of org.springframework.aop.support.annotation.AnnotationClassFilter

    Assert.isTrue((classAnnotationType != null || methodAnnotationType != null),
        "Either Class annotation type or Method annotation type needs to be specified (or both)");

    if (classAnnotationType != null) {
      this.classFilter = new AnnotationClassFilter(classAnnotationType);
    } else {
      this.classFilter = ClassFilter.TRUE;
    }

    if (methodAnnotationType != null) {
View Full Code Here

Examples of org.springframework.aop.support.annotation.AnnotationClassFilter

   * @param checkInherited      whether to explicitly check the superclasses and
   *                            interfaces for the annotation type as well (even if the annotation type
   *                            is not marked as inherited itself)
   */
  public MetaAnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType, boolean checkInherited) {
    this.classFilter = new AnnotationClassFilter(classAnnotationType, checkInherited);
    this.methodMatcher = MethodMatcher.TRUE;
  }
View Full Code Here

Examples of org.springframework.aop.support.annotation.AnnotationClassFilter

    Assert.isTrue((classAnnotationType != null || methodAnnotationType != null),
        "Either Class annotation type or Method annotation type needs to be specified (or both)");

    if (classAnnotationType != null) {
      this.classFilter = new AnnotationClassFilter(classAnnotationType);
    } else {
      this.classFilter = ClassFilter.TRUE;
    }

    if (methodAnnotationType != null) {
View Full Code Here

Examples of org.springframework.aop.support.annotation.AnnotationClassFilter

  @Bean
  @Exposed
  public PrefixingRequestMappingHandlerMapping controllerHandlerMapping() {
    PrefixingRequestMappingHandlerMapping handlerMapping =
        new PrefixingRequestMappingHandlerMapping( new AnnotationClassFilter( Controller.class, true ) );
    handlerMapping.setOrder( 0 );

    return handlerMapping;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.