Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
be-esb-plugin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
be-esb-ecosystem-maven
be-esb-plugin
Commits
292c227a
Commit
292c227a
authored
Jul 08, 2022
by
s_guodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
POM调整
parent
e975ff02
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
78 additions
and
1 deletions
+78
-1
PublicFilter.java
...lliance/eibs/core/service/instance/impl/PublicFilter.java
+56
-0
pom.xml
be-esb-plugin-http/pom.xml
+12
-0
pom.xml
be-esb-plugin-socket/pom.xml
+9
-0
pom.xml
pom.xml
+1
-1
No files found.
be-esb-plugin-base/src/main/java/com/brilliance/eibs/core/service/instance/impl/PublicFilter.java
0 → 100644
View file @
292c227a
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
;
}
}
be-esb-plugin-http/pom.xml
View file @
292c227a
...
...
@@ -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>
...
...
be-esb-plugin-socket/pom.xml
View file @
292c227a
...
...
@@ -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
pom.xml
View file @
292c227a
...
...
@@ -575,7 +575,7 @@
<goal>
copy-dependencies
</goal>
</goals>
<configuration>
<
includeScope>
compile
</in
cludeScope>
<
excludeScope>
provided
</ex
cludeScope>
<!-- 依赖包 输出目录 -->
<outputDirectory>
${project.build.directory}/lib
</outputDirectory>
<!-- 是否不包含间接依赖的包 -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment