1 3 package jodd.petite; 4 5 import jodd.petite.scope.Scope; 6 7 10 class BeanDef { 11 12 BeanDef(String name, Class type, Scope scope) { 13 this.name = name; 14 this.type = type; 15 this.scope = scope; 16 } 17 18 final String name; 19 20 final Class type; 21 22 private final Scope scope; 23 24 Object scopeLookup() { 25 return scope.lookup(name); 26 } 27 28 void scopeRegister(Object object) { 29 scope.register(name, object); 30 } 31 } 32 | Popular Tags |