MentaContainer

Rev

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

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