Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #328 from jsight/ejb_session_example
Added the ability to start a JavaClass from an already existing variable...
- Loading branch information
Showing
5 changed files
with
45 additions
and
26 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
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
18 changes: 18 additions & 0 deletions
18
.../src/main/java/org/jboss/windup/rules/apps/java/condition/JavaClassBuilderReferences.java
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,18 @@ | ||
package org.jboss.windup.rules.apps.java.condition; | ||
|
||
public class JavaClassBuilderReferences | ||
{ | ||
private String inputVarName; | ||
|
||
public JavaClassBuilderReferences(String inputVarName) | ||
{ | ||
this.inputVarName = inputVarName; | ||
} | ||
|
||
public JavaClassBuilder references(String regex) | ||
{ | ||
JavaClassBuilder javaClass = JavaClass.references(regex); | ||
((JavaClass) javaClass).setInputVariablesName(this.inputVarName); | ||
return javaClass; | ||
} | ||
} |
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
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