MentaContainer

Rev

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

Rev 97 Rev 101
Line 89... Line 89...
89
         *                                 bean will be injected in the property of the bean been requested from the container. (auto-wiring by name)
89
         *                                 bean will be injected in the property of the bean been requested from the container. (auto-wiring by name)
90
         * @param klass the type of the dependency, in other words, the type of the auto-wiring. (auto-wiring by type)
90
         * @param klass the type of the dependency, in other words, the type of the auto-wiring. (auto-wiring by type)
91
         * @param source The dependency itself, coming from the container as well, in other words, the bean that will be injected in the original bean
91
         * @param source The dependency itself, coming from the container as well, in other words, the bean that will be injected in the original bean
92
         * @return The container itself. (Fluent API)
92
         * @return The container itself. (Fluent API)
93
         */
93
         */
94
        public void autowireBySetter(String property);
-
 
-
 
94
        public void autowire(String sourceFromContainer);
95
       
95
       
96
        /**
-
 
97
         * Same as {@link #wire(String, Class, String)} except that it assumes that the property name will be the source name, in other words,
-
 
98
         * the property name is the same as the bean name that will be injected as the dependency.
-
 
99
         *
-
 
100
         * @param property
-
 
101
         * @param klass
-
 
102
         * @return The container itself. (Fluent API)
-
 
103
         */
-
 
104
        public void autowireBySetter(String property, String source);
-
 
105
       
-
 
106
        /**
-
 
107
         * Setup a dependency.
-
 
108
         *
-
 
109
         * @param dependency The dependency to setup
-
 
110
         * @return The dependency itself. (Fluent API)
-
 
111
         * @see Dependency
-
 
112
         */
-
 
113
        public void autowireByConstructor(String source);
-
 
-
 
96
        public void autowire(String sourceFromContainer, String property);
114
       
97
       
115
        /**
98
        /**
116
         * Take a given bean and populate its properties with other beans coming from this container. Perhaps you can call this auto-wiring.
99
         * Take a given bean and populate its properties with other beans coming from this container. Perhaps you can call this auto-wiring.
117
         * You basically checking properties of the given bean and looking for values (by name and type!) inside the container. And injecting
100
         * You basically checking properties of the given bean and looking for values (by name and type!) inside the container. And injecting
118
         * in the given bean, in other words, populating it.
101
         * in the given bean, in other words, populating it.