MentaContainer

Rev

Rev 41 | Rev 44 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 41 Rev 43
Line 25... Line 25...
25
25
26
        private Set<Dependency> dependencies = new HashSet<Dependency>();
26
        private Set<Dependency> dependencies = new HashSet<Dependency>();
27
27
28
        public <T> T get(String key) {
28
        public <T> T get(String key) {
29
29
30
                if (!beans.containsKey(key)) throw new RuntimeException("Container does not have this bean set: " + key);
-
 
-
 
30
                if (!beans.containsKey(key)) return null;
31
31
32
                Component c = beans.get(key);
32
                Component c = beans.get(key);
33
33
34
                Object target = null;
34
                Object target = null;
35
35