MentaContainer

Rev

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

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