@Override
protected Filter[] getFilters(final FilterType type) {
switch (type) {
case INCLUDE:
return this.annotation.includeFilters();
case EXCLUDE:
return this.annotation.excludeFilters();
default:
throw new IllegalStateException("Unsupported type " + type);
}
}
java类org.springframework.context.annotation.ComponentScan.Filter的实例源码
DataMongoTypeExcludeFilter.java 文件源码
项目:datamongotest-autoconfigure-spring-boot-DEPRECATED-
阅读 32
收藏 0
点赞 0
评论 0
WebMvcTypeExcludeFilter.java 文件源码
项目:https-github.com-g0t4-jenkins2-course-spring-boot
阅读 32
收藏 0
点赞 0
评论 0
@Override
protected Filter[] getFilters(FilterType type) {
switch (type) {
case INCLUDE:
return this.annotation.includeFilters();
case EXCLUDE:
return this.annotation.excludeFilters();
}
throw new IllegalStateException("Unsupported type " + type);
}
RestClientExcludeFilter.java 文件源码
项目:https-github.com-g0t4-jenkins2-course-spring-boot
阅读 29
收藏 0
点赞 0
评论 0
@Override
protected Filter[] getFilters(FilterType type) {
switch (type) {
case INCLUDE:
return this.annotation.includeFilters();
case EXCLUDE:
return this.annotation.excludeFilters();
}
throw new IllegalStateException("Unsupported type " + type);
}
JsonExcludeFilter.java 文件源码
项目:https-github.com-g0t4-jenkins2-course-spring-boot
阅读 30
收藏 0
点赞 0
评论 0
@Override
protected Filter[] getFilters(FilterType type) {
switch (type) {
case INCLUDE:
return this.annotation.includeFilters();
case EXCLUDE:
return this.annotation.excludeFilters();
}
throw new IllegalStateException("Unsupported type " + type);
}
FilterAnnotations.java 文件源码
项目:https-github.com-g0t4-jenkins2-course-spring-boot
阅读 32
收藏 0
点赞 0
评论 0
private List<TypeFilter> createTypeFilters(Filter[] filters) {
List<TypeFilter> typeFilters = new ArrayList<TypeFilter>();
for (Filter filter : filters) {
for (Class<?> filterClass : filter.classes()) {
typeFilters.add(createTypeFilter(filter.type(), filterClass));
}
for (String pattern : filter.pattern()) {
typeFilters.add(createTypeFilter(filter.type(), pattern));
}
}
return Collections.unmodifiableList(typeFilters);
}
DataJpaTypeExcludeFilter.java 文件源码
项目:https-github.com-g0t4-jenkins2-course-spring-boot
阅读 24
收藏 0
点赞 0
评论 0
@Override
protected Filter[] getFilters(FilterType type) {
switch (type) {
case INCLUDE:
return this.annotation.includeFilters();
case EXCLUDE:
return this.annotation.excludeFilters();
}
throw new IllegalStateException("Unsupported type " + type);
}
WebMvcTypeExcludeFilter.java 文件源码
项目:spring-boot-concourse
阅读 35
收藏 0
点赞 0
评论 0
@Override
protected Filter[] getFilters(FilterType type) {
switch (type) {
case INCLUDE:
return this.annotation.includeFilters();
case EXCLUDE:
return this.annotation.excludeFilters();
}
throw new IllegalStateException("Unsupported type " + type);
}
RestClientExcludeFilter.java 文件源码
项目:spring-boot-concourse
阅读 35
收藏 0
点赞 0
评论 0
@Override
protected Filter[] getFilters(FilterType type) {
switch (type) {
case INCLUDE:
return this.annotation.includeFilters();
case EXCLUDE:
return this.annotation.excludeFilters();
}
throw new IllegalStateException("Unsupported type " + type);
}
JsonExcludeFilter.java 文件源码
项目:spring-boot-concourse
阅读 35
收藏 0
点赞 0
评论 0
@Override
protected Filter[] getFilters(FilterType type) {
switch (type) {
case INCLUDE:
return this.annotation.includeFilters();
case EXCLUDE:
return this.annotation.excludeFilters();
}
throw new IllegalStateException("Unsupported type " + type);
}
FilterAnnotations.java 文件源码
项目:spring-boot-concourse
阅读 24
收藏 0
点赞 0
评论 0
private List<TypeFilter> createTypeFilters(Filter[] filters) {
List<TypeFilter> typeFilters = new ArrayList<TypeFilter>();
for (Filter filter : filters) {
for (Class<?> filterClass : filter.classes()) {
typeFilters.add(createTypeFilter(filter.type(), filterClass));
}
for (String pattern : filter.pattern()) {
typeFilters.add(createTypeFilter(filter.type(), pattern));
}
}
return Collections.unmodifiableList(typeFilters);
}
DataJpaTypeExcludeFilter.java 文件源码
项目:spring-boot-concourse
阅读 30
收藏 0
点赞 0
评论 0
@Override
protected Filter[] getFilters(FilterType type) {
switch (type) {
case INCLUDE:
return this.annotation.includeFilters();
case EXCLUDE:
return this.annotation.excludeFilters();
}
throw new IllegalStateException("Unsupported type " + type);
}
SpringletsWebMvcExcludeFilter.java 文件源码
项目:springlets
阅读 26
收藏 0
点赞 0
评论 0
@Override
protected Filter[] getFilters(FilterType type) {
switch (type) {
case INCLUDE:
return this.annotation.includeFilters();
case EXCLUDE:
return this.annotation.excludeFilters();
}
throw new IllegalStateException("Unsupported type " + type);
}
IAMServiceUnitTest.java 文件源码
项目:cloudstack
阅读 33
收藏 0
点赞 0
评论 0
@Before
public void setUp() {
ComponentContext.initComponentsLifeCycle();
IAMGroupVO group = new IAMGroupVO("group1", "my first group");
Mockito.when(_aclGroupDao.persist(Mockito.any(IAMGroupVO.class))).thenReturn(group);
List<IAMGroupVO> groups = new ArrayList<IAMGroupVO>();
groups.add(group);
when(_aclGroupDao.search(Mockito.any(SearchCriteria.class), Mockito.any(com.cloud.utils.db.Filter.class)))
.thenReturn(groups);
IAMPolicyVO policy = new IAMPolicyVO("policy1", "my first policy");
Mockito.when(_aclPolicyDao.persist(Mockito.any(IAMPolicyVO.class))).thenReturn(policy);
}
FilterAnnotations.java 文件源码
项目:https-github.com-g0t4-jenkins2-course-spring-boot
阅读 29
收藏 0
点赞 0
评论 0
public FilterAnnotations(ClassLoader classLoader, Filter[] filters) {
Assert.notNull(filters, "Filters must not be null");
this.classLoader = classLoader;
this.filters = createTypeFilters(filters);
}
FilterAnnotations.java 文件源码
项目:spring-boot-concourse
阅读 34
收藏 0
点赞 0
评论 0
public FilterAnnotations(ClassLoader classLoader, Filter[] filters) {
Assert.notNull(filters, "Filters must not be null");
this.classLoader = classLoader;
this.filters = createTypeFilters(filters);
}
AnnotationCustomizableTypeExcludeFilter.java 文件源码
项目:https-github.com-g0t4-jenkins2-course-spring-boot
阅读 25
收藏 0
点赞 0
评论 0
protected abstract Filter[] getFilters(FilterType type);
AnnotationCustomizableTypeExcludeFilter.java 文件源码
项目:spring-boot-concourse
阅读 32
收藏 0
点赞 0
评论 0
protected abstract Filter[] getFilters(FilterType type);