本文整理汇总了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;
}
示例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;
}
示例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));
}
}
}
}
示例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);
}
示例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);
}