This repository has been archived by the owner on May 25, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mybatis): add baisc node handler #9
- Loading branch information
Showing
2 changed files
with
78 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...urcecode/src/main/kotlin/org/archguard/scanner/sourcecode/xml/mybatis/SimpleXmlBuilder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.archguard.scanner.sourcecode.xml.mybatis | ||
|
||
import org.apache.ibatis.parsing.XNode | ||
import org.apache.ibatis.scripting.xmltags.MixedSqlNode | ||
import org.apache.ibatis.scripting.xmltags.XMLScriptBuilder | ||
import org.apache.ibatis.session.Configuration | ||
|
||
class SimpleXmlBuilder(configuration: Configuration, context: XNode) : XMLScriptBuilder(configuration, context) { | ||
fun rootNode(context: XNode): MixedSqlNode? { | ||
return parseDynamicTags(context) | ||
} | ||
} |