Spring Framework RegexPatternTypeFilter - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework RegexPatternTypeFilter class.

This code example shows how to use the following methods:
    public void packageScanWithRegexIncludeFilter() throws Exception {
        setDirty(); 
        ClassPathScanningAmfConversionServiceConfigProcessor configProcessor = new ClassPathScanningAmfConversionServiceConfigProcessor("org.springframework.flex.core.io.domain");
        configProcessor.setBeanClassLoader(getApplicationContext().getClassLoader());
        configProcessor.setResourceLoader(getApplicationContext());
        configProcessor.addIncludeFilter(new RegexPatternTypeFilter(Pattern.compile(".*NP")));
        configProcessor.afterPropertiesSet();
 
        addStartupProcessor(configProcessor);
        getMessageBroker(); 
 
        assertNotNull(PropertyProxyRegistry.getProxy(new Person()));
        assertFalse(PropertyProxyRegistry 
                .getProxy(new Person()) instanceof SpringPropertyProxy);
        assertNotNull(PropertyProxyRegistry.getProxy(new PersonNP())); 
        assertTrue(PropertyProxyRegistry 
                .getProxy(new PersonNP()) instanceof SpringPropertyProxy); 
    } 
 
    @Test
4
CodeRank
This code example shows how to use the following methods:
} 
 
class WebPackageFilter extends RegexPatternTypeFilter 
{ 
    public WebPackageFilter() { 
    	 super(Pattern.compile("com.sivalabs.forum.web..*")); 
    } 
} 
3
CodeRank
This code example shows how to use the following methods:
        @Filter(type=FilterType.CUSTOM, value=WebPackage.class)
    }) 
public class RootConfig { 
  public static class WebPackage extends RegexPatternTypeFilter {
    public WebPackage() { 
      super(Pattern.compile("spittr\\.web"));
    }     
  } 
} 
4
CodeRank
This code example shows how to use the following methods:
} 
 
class WebPackageFilter extends RegexPatternTypeFilter 
{ 
    public WebPackageFilter() { 
        super(Pattern.compile("com\\.sivalabs\\.blog\\.web\\..*")); 
    } 
} 
3
CodeRank