01: /**
02: *
03: */package org.drools.rule.builder.dialect.mvel;
04:
05: import java.util.Map;
06:
07: import org.drools.rule.Declaration;
08: import org.drools.spi.DeclarationScopeResolver;
09:
10: public class InstrumentedDeclarationScopeResolver extends
11: DeclarationScopeResolver {
12: private Map declarations;
13:
14: public InstrumentedDeclarationScopeResolver() {
15: super (null);
16: }
17:
18: public void setDeclarations(final Map map) {
19: this .declarations = map;
20: }
21:
22: public Map getDeclarations() {
23: return this .declarations;
24: }
25:
26: public Declaration getDeclaration(final String name) {
27: return (Declaration) this.declarations.get(name);
28: }
29: }
|