Package com.foreach.across.core.filters

Examples of com.foreach.across.core.filters.BeanFilterComposite


        acrossModuleInfo );

    String[] exposedBeanNames = moduleBeanFactory.getExposedBeanNames();

    if ( exposedBeanNames.length > 0 ) {
      exposeFilterToApply = new BeanFilterComposite(
          exposeFilter,
          new NamedBeanFilter( exposedBeanNames )
      );
    }
View Full Code Here


      members = new BeanFilter[members.length + 1];
      members[0] = current;
      System.arraycopy( exposeFilters, 0, members, 1, exposeFilters.length );
    }

    BeanFilterComposite composite = new BeanFilterComposite( members );
    setExposeFilter( composite );
  }
View Full Code Here

   * register them with the AcrossEventPublisher.
   */
  public static void autoRegisterEventHandlers( ApplicationContext applicationContext,
                                                AcrossEventPublisher publisher ) {
    BeanFilter eventHandlerFilter =
        new BeanFilterComposite( new AnnotationBeanFilter( true, AcrossEventHandler.class ),
                                 new AnnotationBeanFilter( Controller.class ) );
    Collection<Object> handlers =
        ApplicationContextScanner.findSingletonsMatching( applicationContext, eventHandlerFilter ).values();

    for ( Object handler : handlers ) {
View Full Code Here

   * By default all @Service and @Controller beans are exposed, along with any other beans
   * annotated explicitly with @Exposed or created through an @Exposed BeanFactory.
   */
  @SuppressWarnings("unchecked")
  public static BeanFilter defaultExposeFilter() {
    return new BeanFilterComposite( new AnnotationBeanFilter( Service.class ),
                                    new AnnotationBeanFilter( true, Exposed.class ) );
  }
View Full Code Here

TOP

Related Classes of com.foreach.across.core.filters.BeanFilterComposite

Copyright © 2018 www.massapicom. 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.