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


Java ArraysUtil.join方法代码示例

本文整理汇总了Java中jodd.util.ArraysUtil.join方法的典型用法代码示例。如果您正苦于以下问题:Java ArraysUtil.join方法的具体用法?Java ArraysUtil.join怎么用?Java ArraysUtil.join使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在jodd.util.ArraysUtil的用法示例。


在下文中一共展示了ArraysUtil.join方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: excludeTypes

import jodd.util.ArraysUtil; //导入方法依赖的package包/类
/**
 * Excludes type names. You can disable
 * serialization of properties that are of some type.
 * For example, you can disable properties of <code>InputStream</code>.
 * You can use wildcards to describe type names.
 */
public JsonSerializer excludeTypes(String... typeNames) {
	if (excludedTypeNames == null) {
		excludedTypeNames = typeNames;
	} else {
		excludedTypeNames = ArraysUtil.join(excludedTypeNames, typeNames);
	}
	return this;
}
 
开发者ID:indic-ocr,项目名称:LibreOCR,代码行数:15,代码来源:JsonSerializer.java

示例2: Jerry

import jodd.util.ArraysUtil; //导入方法依赖的package包/类
/**
 * Creates child Jerry.
 */
protected Jerry(Jerry parent, Node[] nodes1, Node[] nodes2) {
    this.parent = parent;
    this.nodes = ArraysUtil.join(nodes1, nodes2);
    this.builder = parent.builder;
}
 
开发者ID:fivesmallq,项目名称:web-data-extractor,代码行数:9,代码来源:Jerry.java

示例3: postProcessBeanFactory

import jodd.util.ArraysUtil; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void postProcessBeanFactory(
		@Nullable ConfigurableListableBeanFactory beanFactory)
		throws BeansException {
	if (beanFactory == null)
		throw new IllegalStateException(
				"Spring Container initialization error");
	// String[] homePageNames =
	// beanFactory.getBeanNamesForType(IStepInputData.class, true, false);
	String[] allSendKeysActions = beanFactory.getBeanNamesForType(//NOPMD
			SendKeysAction.class, true, false);
	String[] allAssignValueActs = beanFactory.getBeanNamesForType(
			AssignValueAction.class, true, false);
	allSendKeysActions = ArraysUtil.join(allSendKeysActions, allAssignValueActs);
	
	for (int index = 0; index < allSendKeysActions.length; index++) {
		BeanDefinition sendKeyActDef = beanFactory
				.getBeanDefinition(allSendKeysActions[index]);
		String dataValue = ((RuntimeBeanReference) sendKeyActDef.getConstructorArgumentValues().getGenericArgumentValue(RuntimeBeanReference.class).getValue()).getBeanName();
				//.getAttribute(XsdElementConstants.ATTR_SENDKEYSACTION_DATAVALUE);
		if (null == dataValue) {
			throw new IllegalStateException(
					"Spring Container sendKeyActionValue initialization error");
		} else {
			try {
				beanFactory.getBeanDefinition(dataValue);
			} catch (NoSuchBeanDefinitionException NoBeanDef) {

				String idstr;
				BeanDefinitionBuilder definitionBuilder;

				if (StringUtils.isEmpty(dataValue)) {
					 definitionBuilder = BeanDefinitionBuilder
								.genericBeanDefinition(RandomAlphaTextValueDataHolder.class);
					idstr = (String) sendKeyActDef.getAttribute("id")
							+ "_SendKeysRandomAlphaTextDataValueBean_ID";
					definitionBuilder.addConstructorArgValue(idstr);
					definitionBuilder.addConstructorArgValue(10);

				} else {
					 definitionBuilder = BeanDefinitionBuilder
								.genericBeanDefinition(ManualAssignedValueDataHolder.class);
					
					definitionBuilder
							.addConstructorArgValue(EnumRunTimeDataType.TEXT);
					definitionBuilder.addConstructorArgValue(dataValue);

					idstr = (String) sendKeyActDef.getAttribute("id")
							+ "_SendKeysDataValueBean_ID";
					definitionBuilder.addConstructorArgValue(idstr);

				}

				getBdReg().registerBeanDefinition(idstr,
						definitionBuilder.getBeanDefinition());
				sendKeyActDef.setAttribute(
						XsdElementConstants.ATTR_SENDKEYSACTION_DATAVALUE,
						idstr);
				sendKeyActDef.getConstructorArgumentValues()
						.getGenericArgumentValue(RuntimeBeanReference.class).setValue( 
								new RuntimeBeanReference(idstr));
			}
		}
	}

}
 
开发者ID:bigtester,项目名称:automation-test-engine,代码行数:70,代码来源:SendKeysActionPostBeanProcessor.java

示例4: addParentOnlyRules

import jodd.util.ArraysUtil; //导入方法依赖的package包/类
/**
 * Adds parent only rules for classes which must be loaded on the
 * parent loader.
 */
public void addParentOnlyRules(String... packages) {
	parentOnlyRules = ArraysUtil.join(parentOnlyRules, packages);
}
 
开发者ID:indic-ocr,项目名称:LibreOCR,代码行数:8,代码来源:ExtendedURLClassLoader.java

示例5: addLoaderOnlyRules

import jodd.util.ArraysUtil; //导入方法依赖的package包/类
/**
 * Adds loader-only rules for classes which must be loaded using this
 * loader.
 */
public void addLoaderOnlyRules(String... packages) {
	loaderOnlyRules = ArraysUtil.join(loaderOnlyRules, packages);
}
 
开发者ID:indic-ocr,项目名称:LibreOCR,代码行数:8,代码来源:ExtendedURLClassLoader.java


注:本文中的jodd.util.ArraysUtil.join方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。