Commit 292c227a by s_guodong

POM调整

parent e975ff02
package com.brilliance.eibs.core.service.instance.impl;
import com.brilliance.eibs.core.model.IFieldDef;
import com.brilliance.eibs.core.service.Context;
import java.util.HashMap;
import java.util.Map;
/**
* 公共Filter,进行基础处理
*
* @author xiaoyuanzhen
*/
public class PublicFilter extends AbsFilter {
Map<Object, Integer[]> arrayLenMap = new HashMap<Object, Integer[]>();
@Override
public void execute(Context context) {
// logger.debug( LOG_FLAG + "PublicFilter is running" +
// LOG_FLAG);
context.setCurrentInstance(this);
super.execute(context);
if ("out".equals(getFilterDef().getType())) {
// saveToContext(getFilterDef().getScope(), getFilterDef().getTag(),
// context.getObject());
}
// logger.debug( LOG_FLAG + "PublicFilter has finished running"
// + LOG_FLAG);
}
/**
* 遍历一个数组或List
*
* @param object
* @return
*/
public boolean next(Object object) {
if (!arrayLenMap.containsKey(object)) {
int len = getArrayLen(object);
arrayLenMap.put(object, new Integer[]{0, len});
}
Integer[] lens = arrayLenMap.get(object);
if (lens[0] >= lens[1])
return false;
else {
lens[0]++;
return true;
}
}
@Override
public Object getFieldValue(IFieldDef fieldDef) {
return null;
}
}
......@@ -17,6 +17,18 @@
<artifactId>commons-httpclient</artifactId>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-jexl</artifactId>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-core</artifactId>
</dependency>
......
......@@ -16,6 +16,14 @@
<groupId>org.apache.mina</groupId>
<artifactId>mina-core</artifactId>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-jexl</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
......@@ -575,7 +575,7 @@
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeScope>compile</includeScope>
<excludeScope>provided</excludeScope>
<!-- 依赖包 输出目录 -->
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<!-- 是否不包含间接依赖的包 -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment