当前位置: 首页>>代码示例>>Java>>正文


Java方法org.springframework.util.PatternMatchUtils.simpleMatch代码示例

以下是Java方法org.springframework.util.PatternMatchUtils.simpleMatch的代码示例。如果您正苦于以下问题:Java PatternMatchUtils.simpleMatch方法的具体用法?Java PatternMatchUtils.simpleMatch怎么用?Java PatternMatchUtils.simpleMatch使用的例子?那么恭喜您, 这里整理的方法代码示例例程将为您提供帮助。您也可以进一步了解该方法所在org.springframework.util.PatternMatchUtils的用法示例。

本文一共展示了PatternMatchUtils.simpleMatch的33个开源代码实例,这些例子默认根据受欢迎程度排序。您可以为喜欢的代码打CALL点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getWebSocketBrokarage

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
private ZuulWebSocketProperties.WsBrokerage getWebSocketBrokarage(URI uri) {
	String path = uri.toString();
	if (path.contains(":")) {
		path = UriComponentsBuilder.fromUriString(path).build().getPath();
	}

	for (Map.Entry<String, ZuulWebSocketProperties.WsBrokerage> entry : zuulWebSocketProperties
			.getBrokerages().entrySet()) {
		ZuulWebSocketProperties.WsBrokerage wsBrokerage = entry.getValue();
		if (wsBrokerage.isEnabled()) {
			for (String endPoint : wsBrokerage.getEndPoints()) {
				if (PatternMatchUtils.simpleMatch(toPattern(endPoint), path + "/")) {
					return wsBrokerage;
				}
			}
		}
	}

	return null;
}
 
开发者ID:mthizo247,项目:spring-cloud-netflix-zuul-websocket,完整代码来源:ProxyWebSocketHandler.java


示例2: findImage

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
/**
 * Find image by its name, or id
 * @param name
 * @param imageId
 * @return
 */
public Image findImage(String name, String imageId) {
    Image res = null;
    if(imageId != null) {
        res = imagesByName.get(imageId);
    }
    String withoutTag = ImageName.withoutTagOrNull(name);
    if(res == null && withoutTag != null) {
        res = imagesByName.get(withoutTag);
    }
    if(res == null && (imageId != null || withoutTag != null)) {
        for(Image img: imagesWithPattern) {
            String pattern = img.getName();
            if(withoutTag != null && PatternMatchUtils.simpleMatch(pattern, withoutTag) ||
               imageId != null && PatternMatchUtils.simpleMatch(pattern, imageId)) {
                res = img;
                break;
            }
        }
    }
    return res;
}
 
开发者ID:codeabovelab,项目:haven-platform,完整代码来源:ImagesForUpdate.java


示例3: getErrorCodes

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
/**
 * Return the {@link SQLErrorCodes} instance for the given database.
 * <p>No need for a database metadata lookup.
 * @param dbName the database name (must not be {@code null})
 * @return the {@code SQLErrorCodes} instance for the given database
 * @throws IllegalArgumentException if the supplied database name is {@code null}
 */
public SQLErrorCodes getErrorCodes(String dbName) {
	Assert.notNull(dbName, "Database product name must not be null");

	SQLErrorCodes sec = this.errorCodesMap.get(dbName);
	if (sec == null) {
		for (SQLErrorCodes candidate : this.errorCodesMap.values()) {
			if (PatternMatchUtils.simpleMatch(candidate.getDatabaseProductNames(), dbName)) {
				sec = candidate;
				break;
			}
		}
	}
	if (sec != null) {
		checkCustomTranslatorRegistry(dbName, sec);
		if (logger.isDebugEnabled()) {
			logger.debug("SQL error codes for '" + dbName + "' found");
		}
		return sec;
	}

	// Could not find the database among the defined ones.
	if (logger.isDebugEnabled()) {
		logger.debug("SQL error codes for '" + dbName + "' not found");
	}
	return new SQLErrorCodes();
}
 
开发者ID:lamsfoundation,项目:lams,完整代码来源:SQLErrorCodesFactory.java


示例4: getWebSocketServerPath

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
private String getWebSocketServerPath(ZuulWebSocketProperties.WsBrokerage wsBrokerage,
		URI uri) {
	String path = uri.toString();
	if (path.contains(":")) {
		path = UriComponentsBuilder.fromUriString(path).build().getPath();
	}

	for (String endPoint : wsBrokerage.getEndPoints()) {
		if (PatternMatchUtils.simpleMatch(toPattern(endPoint), path + "/")) {
			return endPoint;
		}
	}

	return null;
}
 
开发者ID:mthizo247,项目:spring-cloud-netflix-zuul-websocket,完整代码来源:ProxyWebSocketHandler.java


示例5: executeLocalJobs

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
private void executeLocalJobs(JobParameters jobParameters)
		throws JobExecutionException {
	for (Job job : this.jobs) {
		if (StringUtils.hasText(this.jobNames)) {
			String[] jobsToRun = this.jobNames.split(",");
			if (!PatternMatchUtils.simpleMatch(jobsToRun, job.getName())) {
				logger.debug("Skipped job: " + job.getName());
				continue;
			}
		}
		execute(job, jobParameters);
	}
}
 
开发者ID:philwebb,项目:spring-boot-concourse,完整代码来源:JobLauncherCommandLineRunner.java


示例6: innerTest

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
@Override
protected boolean innerTest(CharSequence text) {
    if(text == null) {
        //obviously that '*' math null strings too
        return "*".equals(pattern);
    }
    return PatternMatchUtils.simpleMatch(pattern, text.toString());
}
 
开发者ID:codeabovelab,项目:haven-platform,完整代码来源:PatternFilter.java


示例7: hasAtLeastOneAnnotation

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
/**
 * Determine if an {@link AnnotatedNode} has one or more of the specified annotations.
 * N.B. the annotation type names are not normally fully qualified.
 * @param node the node to examine
 * @param annotations the annotations to look for
 * @return {@code true} if at least one of the annotations is found, otherwise
 * {@code false}
 */
public static boolean hasAtLeastOneAnnotation(AnnotatedNode node,
		String... annotations) {
	for (AnnotationNode annotationNode : node.getAnnotations()) {
		for (String annotation : annotations) {
			if (PatternMatchUtils.simpleMatch(annotation,
					annotationNode.getClassNode().getName())) {
				return true;
			}
		}
	}
	return false;
}
 
开发者ID:philwebb,项目:spring-boot-concourse,完整代码来源:AstUtils.java


示例8: findTrigger

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
/**
 * Find a matching trigger configuration.
 * @param name the bean name to match
 * @return a matching configuration if there is one
 */
public TriggerProperties findTrigger(String name) {
	for (SpecificTriggerProperties value : this.triggers.values()) {
		if (PatternMatchUtils.simpleMatch(value.getNames(), name)) {
			return value;
		}
	}
	return this;
}
 
开发者ID:philwebb,项目:spring-boot-concourse,完整代码来源:MetricExportProperties.java


示例9: isMatch

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
private boolean isMatch(Metric<?> metric) {
	String[] includes = MetricCopyExporter.this.includes;
	String[] excludes = MetricCopyExporter.this.excludes;
	String name = metric.getName();
	if (ObjectUtils.isEmpty(includes)
			|| PatternMatchUtils.simpleMatch(includes, name)) {
		return !PatternMatchUtils.simpleMatch(excludes, name);
	}
	return false;
}
 
开发者ID:vikrammane23,项目:https-github.com-g0t4-jenkins2-course-spring-boot,完整代码来源:MetricCopyExporter.java


示例10: filter

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
private List<Server> filter(List<Server> servers, String pattern) {
	List<Server> filtered = new ArrayList<>();
	for (Server server : servers) {
		if (PatternMatchUtils.simpleMatch(pattern, server.getId())) {
			filtered.add(server);
		}
	}
	return filtered;
}
 
开发者ID:spencergibb,项目:ribbondemo,完整代码来源:DemoServerListFilter.java


示例11: filter

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
private Server filter(String pattern) {
	if (StringUtils.hasText(pattern)) {
		List<Server> servers = getServerList(true);
		for (Server server : servers) {
			if (PatternMatchUtils.simpleMatch(pattern, server.getId())) {
				return server;
			}
		}
	}
	return null;
}
 
开发者ID:spencergibb,项目:ribbondemo,完整代码来源:DemoLoadBalancer.java


示例12: isMatch

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
private boolean isMatch(String name, String[] includes, String[] excludes) {
	if (ObjectUtils.isEmpty(includes)
			|| PatternMatchUtils.simpleMatch(includes, name)) {
		return !PatternMatchUtils.simpleMatch(excludes, name);
	}
	return false;
}
 
开发者ID:spring-cloud,项目:spring-cloud-stream,完整代码来源:ApplicationMetricsProperties.java


示例13: isMatch

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
/**
 * Copy of similarly named method in {@link MetricCopyExporter}.
 */
private boolean isMatch(String name, String[] includes, String[] excludes) {
	if (ObjectUtils.isEmpty(includes)
			|| PatternMatchUtils.simpleMatch(includes, name)) {
		return !PatternMatchUtils.simpleMatch(excludes, name);
	}
	return false;
}
 
开发者ID:spring-cloud,项目:spring-cloud-stream,完整代码来源:ApplicationMetricsExporter.java


示例14: isTransport

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
static boolean isTransport(ClassNode node, String type) {
	for (AnnotationNode annotationNode : node.getAnnotations()) {
		String annotation = "EnableBinding";
		if (PatternMatchUtils.simpleMatch(annotation,
				annotationNode.getClassNode().getName())) {
			Expression expression = annotationNode.getMembers().get("transport");
			String transport = expression == null ? "rabbit" : expression.getText();
			if (transport != null) {
				transport = SystemPropertyUtils.resolvePlaceholders(transport);
			}
			return transport.equals(type);
		}
	}
	return false;
}
 
开发者ID:spring-cloud,项目:spring-cloud-cli,完整代码来源:BaseStreamCompilerAutoConfiguration.java


示例15: matches

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
public boolean matches(String application, String profile, String label) {
	if (this.pattern == null || this.pattern.length == 0) {
		return false;
	}
	String[] profiles = StringUtils.commaDelimitedListToStringArray(profile);
	for (int i = profiles.length; i-- > 0;) {
		if (PatternMatchUtils.simpleMatch(this.pattern,
				application + "/" + profiles[i])) {
			return true;
		}
	}
	return false;
}
 
开发者ID:spring-cloud,项目:spring-cloud-config,完整代码来源:MultipleJGitEnvironmentRepository.java


示例16: findOne

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
@Override
public Environment findOne(String application, String profile, String label) {

	if (this.pattern == null || this.pattern.length == 0) {
		return null;
	}

	if (PatternMatchUtils.simpleMatch(this.pattern,
			application + "/" + profile)) {
		return super.findOne(application, profile, label);
	}

	return null;

}
 
开发者ID:spring-cloud,项目:spring-cloud-config,完整代码来源:MultipleJGitEnvironmentRepository.java


示例17: getAttributes

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
public List<ConfigAttribute> getAttributes(Object jp) {
    String methodName = ((JoinPoint) jp).getSignature().getName();
    for (String pattern : mapping.keySet()) {
        if (PatternMatchUtils.simpleMatch(pattern, methodName)) {
            String role = mapping.get(pattern);
            return SecurityConfig.createList(role);
        }
    }
    throw new IllegalArgumentException("Unknown mapping for " + methodName);
}
 
开发者ID:sobkowiak,项目:aspectj-in-action-code,完整代码来源:MappingBasedSecurityMetadataSource.java


示例18: getAggregatorForMetric

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
@Override
public Aggregator getAggregatorForMetric(String metricName) {
    for (final Map.Entry<String, Aggregator> entry : aggregatorsByWildcard.entrySet()) {
        if (PatternMatchUtils.simpleMatch(entry.getKey(), metricName)) {
            log.debug("Metric {} matched wildcard {} -> {}", metricName, entry.getKey(), entry.getValue());
            return entry.getValue();
        }
    }
    
    return null;
}
 
开发者ID:Conductor,项目:tsquare,完整代码来源:WildcardAggregatorFactory.java


示例19: isMatch

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
protected boolean isMatch(String methodName, String mappedName) {
    return PatternMatchUtils.simpleMatch(mappedName, methodName);
}
 
开发者ID:AsuraTeam,项目:asura,完整代码来源:ReadWriteDataSourceProcessor.java


示例20: isMatch

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
/**
 * 通配符匹配
 */
protected boolean isMatch(String methodName, String mappedName) {
    return PatternMatchUtils.simpleMatch(mappedName, methodName);
}
 
开发者ID:6089555,项目:spring-boot-starter-dynamic-datasource,完整代码来源:DataSourceAspect.java


示例21: matches

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
@Override
public boolean matches(String propertyName) {
	return PatternMatchUtils.simpleMatch(this.patterns, propertyName);
}
 
开发者ID:philwebb,项目:spring-boot-concourse,完整代码来源:PatternPropertyNamePatternsMatcher.java


示例22: canHandle

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
protected boolean canHandle(final String viewName) {
    final String[] viewNamesToBeProcessed = getViewNames();
    final String[] viewNamesNotToBeProcessed = getExcludedViewNames();
    return ((viewNamesToBeProcessed == null || PatternMatchUtils.simpleMatch(viewNamesToBeProcessed, viewName)) &&
            (viewNamesNotToBeProcessed == null || !PatternMatchUtils.simpleMatch(viewNamesNotToBeProcessed, viewName)));
}
 
开发者ID:passion1014,项目:metaworks_framework,完整代码来源:BroadleafThymeleafViewResolver.java


示例23: filesFromEvents

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
private Set<File> filesFromEvents() {
	Set<File> files = new LinkedHashSet<File>();
	if (this.watcher == null) {
		return files;
	}
	WatchKey key = this.watcher.poll();
	while (key != null) {
		for (WatchEvent<?> event : key.pollEvents()) {
			if (event.kind() == StandardWatchEventKinds.ENTRY_CREATE
					|| event.kind() == StandardWatchEventKinds.ENTRY_MODIFY) {
				Path item = (Path) event.context();
				File file = new File(((Path) key.watchable()).toAbsolutePath()
						+ File.separator + item.getFileName());
				if (file.isDirectory()) {
					files.addAll(walkDirectory(file.toPath()));
				}
				else {
					if (!file.getPath().contains(".git") && !PatternMatchUtils
							.simpleMatch(this.excludes, file.getName())) {
						if (log.isDebugEnabled()) {
							log.debug("Watch Event: " + event.kind() + ": " + file);
						}
						files.add(file);
					}
				}
			}
			else if (event.kind() == StandardWatchEventKinds.OVERFLOW) {
				if (log.isDebugEnabled()) {
					log.debug("Watch Event: " + event.kind() + ": context: "
							+ event.context());
				}
				if (event.context() != null && event.context() instanceof Path) {
					files.addAll(walkDirectory((Path) event.context()));
				}
				else {
					for (Path path : this.directory) {
						files.addAll(walkDirectory(path));
					}
				}
			}
			else {
				if (log.isDebugEnabled()) {
					log.debug("Watch Event: " + event.kind() + ": context: "
							+ event.context());
				}
			}
		}
		key.reset();
		key = this.watcher.poll();
	}
	return files;
}
 
开发者ID:spring-cloud,项目:spring-cloud-config,完整代码来源:FileMonitorConfiguration.java


示例24: isMatch

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
protected boolean isMatch(String beanName, String mappedName) {
	return PatternMatchUtils.simpleMatch(mappedName, beanName);
}
 
开发者ID:xushaomin,项目:appleframework,完整代码来源:OperatorInterceptor.java


示例25: isAllowed

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
/**
 * Return if the given field is allowed for binding.
 * Invoked for each passed-in property value.
 * <p>The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches,
 * as well as direct equality, in the specified lists of allowed fields and
 * disallowed fields. A field matching a disallowed pattern will not be accepted
 * even if it also happens to match a pattern in the allowed list.
 * <p>Can be overridden in subclasses.
 * @param field the field to check
 * @return if the field is allowed
 * @see #setAllowedFields
 * @see #setDisallowedFields
 * @see org.springframework.util.PatternMatchUtils#simpleMatch(String, String)
 */
protected boolean isAllowed(String field) {
	String[] allowed = getAllowedFields();
	String[] disallowed = getDisallowedFields();
	return ((ObjectUtils.isEmpty(allowed) || PatternMatchUtils.simpleMatch(allowed, field)) &&
			(ObjectUtils.isEmpty(disallowed) || !PatternMatchUtils.simpleMatch(disallowed, field)));
}
 
开发者ID:lamsfoundation,项目:lams,完整代码来源:DataBinder.java


示例26: isMatch

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
/**
 * Return if the given method name matches the mapped name.
 * <p>The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches,
 * as well as direct equality. Can be overridden in subclasses.
 * @param methodName the method name of the class
 * @param mappedName the name in the descriptor
 * @return if the names match
 * @see org.springframework.util.PatternMatchUtils#simpleMatch(String, String)
 */
protected boolean isMatch(String methodName, String mappedName) {
	return PatternMatchUtils.simpleMatch(mappedName, methodName);
}
 
开发者ID:lamsfoundation,项目:lams,完整代码来源:NameMatchTransactionAttributeSource.java


示例27: isMatch

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
/**
 * Return if the given method name matches the mapped name.
 * <p>The default implementation checks for "xxx*", "*xxx" and "*xxx*"
 * matches, as well as direct equality.
 * @param methodName the method name of the class
 * @param mappedName the name in the descriptor
 * @return if the names match
 * @see org.springframework.util.PatternMatchUtils#simpleMatch(String, String)
 */
protected boolean isMatch(String methodName, String mappedName) {
	return PatternMatchUtils.simpleMatch(mappedName, methodName);
}
 
开发者ID:lamsfoundation,项目:lams,完整代码来源:MethodMapTransactionAttributeSource.java


示例28: isMatch

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
/**
 * Return if the given bean name matches the mapped name.
 * <p>The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches,
 * as well as direct equality. Can be overridden in subclasses.
 * @param beanName the bean name to check
 * @param mappedName the name in the configured list of names
 * @return if the names match
 * @see org.springframework.util.PatternMatchUtils#simpleMatch(String, String)
 */
protected boolean isMatch(String beanName, String mappedName) {
	return PatternMatchUtils.simpleMatch(mappedName, beanName);
}
 
开发者ID:lamsfoundation,项目:lams,完整代码来源:BeanNameAutoProxyCreator.java


示例29: canHandle

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
/**
 * Indicates whether or not this {@link org.springframework.web.servlet.ViewResolver} can
 * handle the supplied view name. If not, {@link #createView(String, java.util.Locale)} will
 * return {@code null}. The default implementation checks against the configured
 * {@link #setViewNames view names}.
 * @param viewName the name of the view to retrieve
 * @param locale the Locale to retrieve the view for
 * @return whether this resolver applies to the specified view
 * @see org.springframework.util.PatternMatchUtils#simpleMatch(String, String)
 */
protected boolean canHandle(String viewName, Locale locale) {
	String[] viewNames = getViewNames();
	return (viewNames == null || PatternMatchUtils.simpleMatch(viewNames, viewName));
}
 
开发者ID:langtianya,项目:spring4-understanding,完整代码来源:UrlBasedViewResolver.java


示例30: isRedirectViewName

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
/**
 * Whether the given view name is a redirect view reference.
 * The default implementation checks the configured redirect patterns and
 * also if the view name starts with the "redirect:" prefix.
 * @param viewName the view name to check, never {@code null}
 * @return "true" if the given view name is recognized as a redirect view
 * reference; "false" otherwise.
 */
protected boolean isRedirectViewName(String viewName) {
	return (PatternMatchUtils.simpleMatch(this.redirectPatterns, viewName) || viewName.startsWith("redirect:"));
}
 
开发者ID:langtianya,项目:spring4-understanding,完整代码来源:ViewNameMethodReturnValueHandler.java


示例31: createMethodLevelRequestMappingValues

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
protected String[] createMethodLevelRequestMappingValues(EntityControllerImpl<?,?> handler, Method method, String[] requestMappingValues){
	
	try{
		String topLevelMapping = handler.getInformation().getTopLevelMapping();
		String[] methodLevelMappings = handler.getInformation().getMethodLevelMapping();
		String identityPath = handler.getInformation().getEntityPath();

		
		List<String> newValuesList = new ArrayList<String>();
		for(String requestMappingValue : requestMappingValues){

			String requestMapping = StringUtils.replace(requestMappingValue, EntityControllerImpl.COMMAND_ID_PATH, identityPath);

			if( ! StringUtils.hasLength(identityPath) ){
				throw new Exception("identity requried");
			}
			
			for(int i = 0 ; i < methodLevelMappings.length; i++){
				
				String file = StringUtils.stripFilenameExtension(methodLevelMappings[i]);
				String extension = StringUtils.getFilenameExtension(methodLevelMappings[i]);

				//logger.debug(file+"."+extension);
			
				
				if(PatternMatchUtils.simpleMatch(file, method.getName())){
					
					if(StringUtils.hasText(extension)){
						newValuesList.add(topLevelMapping + requestMapping+"."+extension);
						
					}else{
						newValuesList.add( topLevelMapping + requestMapping);
					}

					if(! m.containsKey(topLevelMapping+"/")){
						m.put(topLevelMapping+"/" , ClassUtils.getShortName(handler.getInformation().getQueryClass()));
					}

				}

			}
		}
		//logger.debug(newValuesList.size());
		
		String[] newValues = new String[newValuesList.size()];
		newValuesList.toArray(newValues);
		return newValues;

	}catch(Exception e){
		throw new RuntimeException(e);
	}
	
}
 
开发者ID:u2ware,项目:springfield,完整代码来源:HandlerMapping.java


示例32: isMatch

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
/**
 * Return if the given bean name matches the mapped name.
 * <p>
 * The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches,
 * as well as direct equality. Can be overridden in subclasses.
 * 
 * @param beanName
 *            the bean name to check
 * @param mappedName
 *            the name in the configured list of names
 * @return if the names match
 * @see org.springframework.util.PatternMatchUtils#simpleMatch(String,
 *      String)
 */
protected boolean isMatch(String beanName, String mappedName) {
	return PatternMatchUtils.simpleMatch(mappedName, beanName);
}
 
开发者ID:xushaomin,项目:appleframework,完整代码来源:OperatorBeanAutoProxyCreator.java


示例33: antMatch

import org.springframework.util.PatternMatchUtils; //导入方法依赖的package包/类
/**
 * 以Ant表达式语法(*表达式)判断输入字符串是否匹配表达式<br>
 * 传入多个表达式时,只要有一个满足即可
 *
 * @param input
 *            测试字符串
 * @param patterns
 *            匹配表达式
 * @return 以Ant表达式语法(*表达式)判断输入字符串是否匹配表达式
 */
public boolean antMatch(String input, String... patterns) {
	return PatternMatchUtils.simpleMatch(patterns, input);
}
 
开发者ID:javamonkey,项目:beetl2.0,完整代码来源:UtilsFunctionPackage.java



注:本文示例均筛选自Github平台上各路大神开发的开源项目,代码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。