Created
February 12, 2013 22:26
-
-
Save mikebrock/4774045 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| private static Statement recordInlineReference(final Statement beanCreationStmt, | |
| final InjectionContext ctx, | |
| final MetaParameter parm) { | |
| final String varName = InjectUtil.getUniqueVarName(); | |
| ctx.getProcessingContext() | |
| .append(Stmt.declareFinalVariable(varName, parm.getType(), beanCreationStmt)); | |
| final Statement stmt = Refs.get(varName); | |
| ctx.addInlineBeanReference(parm, stmt); | |
| return stmt; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment