public abstract class AbstractConventionIdentifier extends Object implements ConventionComponentIdentifier
Constructor and Description |
---|
AbstractConventionIdentifier() |
Modifier and Type | Method and Description |
---|---|
protected String |
getHandlerClassNamePattern(String pkgPattern) |
protected abstract String |
getHandlerType() |
List<String> |
getPackagePatterns()
约定组件定义的包路径正则,匹配类的包路径正则
|
boolean |
isComponent(String className)
该类是否是约定组件
|
void |
setPathMatcher(org.springframework.util.PathMatcher pathMatcher) |
void |
setPkgPatterns(List<String> pkgPatterns) |
public void setPathMatcher(org.springframework.util.PathMatcher pathMatcher)
public List<String> getPackagePatterns()
ConventionComponentIdentifier
getPackagePatterns
in interface ConventionComponentIdentifier
public boolean isComponent(String className)
ConventionComponentIdentifier
isComponent
in interface ConventionComponentIdentifier
protected abstract String getHandlerType()
Copyright © 2006–2018 TinyGroup. All rights reserved.