MentaContainer

Rev

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

Rev 20 Rev 21
Line 37... Line 37...
37
         * @return The component created. (Fluent API)
37
         * @return The component created. (Fluent API)
38
         */
38
         */
39
        public Component ioc(String key, Class<? extends Object> klass, boolean singleton);
39
        public Component ioc(String key, Class<? extends Object> klass, boolean singleton);
40
       
40
       
41
        /**
41
        /**
42
         * Same as {@link #ioc(String, Class<? extends Object>, singleton)} except that it assumes
-
 
-
 
42
         * Same as {@link #ioc(String, Class, boolean)} except that it assumes
43
         * singleton is false.
43
         * singleton is false.
44
         *
44
         *
45
         * @param key
45
         * @param key
46
         * @param klass
46
         * @param klass
47
         * @return The component created. (Fluent API)
47
         * @return The component created. (Fluent API)
Line 51... Line 51...
51
        /**
51
        /**
52
         * Set up IoC based on the component passed.
52
         * Set up IoC based on the component passed.
53
         *
53
         *
54
         * @param component The component for the IoC.
54
         * @param component The component for the IoC.
55
         * @return The component passed as a parameter. (Fluent API)
55
         * @return The component passed as a parameter. (Fluent API)
-
 
56
         * @see Component
56
         */
57
         */
57
        public Component ioc(Component component);
58
        public Component ioc(Component component);
58
       
59
       
59
        /**
60
        /**
60
         * Configure a bean dependency to be auto-wired by the container. In general you want the
61
         * Configure a bean dependency to be auto-wired by the container. In general you want the
Line 72... Line 73...
72
         * @return The container itself. (Fluent API)
73
         * @return The container itself. (Fluent API)
73
         */
74
         */
74
        public Dependency autowire(String property, Class<? extends Object> klass, String source);
75
        public Dependency autowire(String property, Class<? extends Object> klass, String source);
75
       
76
       
76
        /**
77
        /**
77
         * Same as {@link #autowire(String, Class<? extends Object>)} except that it assumes that the property name will be the source name, in other words,
-
 
-
 
78
         * Same as {@link #autowire(String, Class, String)} except that it assumes that the property name will be the source name, in other words,
78
         * the property name is the same as the bean name that will be injected as the dependency.
79
         * the property name is the same as the bean name that will be injected as the dependency.
79
         *
80
         *
80
         * @param property
81
         * @param property
81
         * @param klass
82
         * @param klass
82
         * @return The container itself. (Fluent API)
83
         * @return The container itself. (Fluent API)
83
         */
84
         */
84
        public Dependency autowire(String property, Class<? extends Object> klass);
85
        public Dependency autowire(String property, Class<? extends Object> klass);
85
       
86
       
86
        /**
87
        /**
-
 
88
         * Setup a dependency.
87
         *
89
         *
-
 
90
         * @param dependency The dependency to setup
-
 
91
         * @return The dependency itself. (Fluent API)
-
 
92
         * @see Dependency
88
         */
93
         */
89
        public Dependency autowire(Dependency dependency);
94
        public Dependency autowire(Dependency dependency);
90
       
95
       
91
        /**
96
        /**
92
         * Take a given bean and populate its properties with other beans coming from this container. Perhaps you can call this auto-wiring.
97
         * Take a given bean and populate its properties with other beans coming from this container. Perhaps you can call this auto-wiring.