MentaContainer

Rev

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

Rev 141 Rev 142
Line 69... Line 69...
69
         * @param key The key representing the bean to return. The name of the bean in the container.
69
         * @param key The key representing the bean to return. The name of the bean in the container.
70
         * @param factory The factory for the IoC.
70
         * @param factory The factory for the IoC.
71
         * @return The factory passed as a parameter. (Fluent API)
71
         * @return The factory passed as a parameter. (Fluent API)
72
         * @see Factory
72
         * @see Factory
73
         */
73
         */
74
        public Creator<?> ioc(Object key, Creator<?> factory);
-
 
-
 
74
        public <T> Creator<T> ioc(Object key, Creator<T> factory);
-
 
75
       
-
 
76
        /**
-
 
77
         * Set up a pool for the given key. The scope assumed is NONE.
-
 
78
         *
-
 
79
         * @param key The key representing the bean to return. The name of the bean in the container.
-
 
80
         * @param pool The pool for the IoC.
-
 
81
         * @return The factory passed as a parameter. (Fluent API)
-
 
82
         * @see Pool
-
 
83
         */
-
 
84
        public <T> Pool<T> ioc(Object key, Pool<T> pool);
75
       
85
       
76
        /**
86
        /**
77
         * Set up a factory for the given key in the given scope.
87
         * Set up a factory for the given key in the given scope.
78
         *
88
         *
79
         * @param key The key representing the bean to return. The name of the bean in the container.
89
         * @param key The key representing the bean to return. The name of the bean in the container.
Line 82... Line 92...
82
         * @return The factory passed as a parameter (Fluent API).
92
         * @return The factory passed as a parameter (Fluent API).
83
         * @see Factory
93
         * @see Factory
84
         * @see Scope
94
         * @see Scope
85
         */
95
         */
86
        public <T> Creator<T> ioc(Object key, Creator<T> factory, Scope scope);
96
        public <T> Creator<T> ioc(Object key, Creator<T> factory, Scope scope);
-
 
97
       
-
 
98
        /**
-
 
99
         * Set up a pool for the given key in the given scope.
-
 
100
         *
-
 
101
         * @param key The key representing the bean to return. The name of the bean in the container.
-
 
102
         * @param pool The pool for the IoC.
-
 
103
         * @param scope The scope used by the factory.
-
 
104
         * @return The factory passed as a parameter (Fluent API).
-
 
105
         * @see Pool
-
 
106
         * @see Scope
-
 
107
         */
-
 
108
        public <T> Pool<T> ioc(Object key, Pool<T> pool, Scope scope);
87
       
109
       
88
        /**
110
        /**
89
         * Configure a bean dependency to be auto-wired by the container.
111
         * Configure a bean dependency to be auto-wired by the container.
90
         * It wires by constructor and by setter. By constructor is uses the type of sourceFromContainer. By setter it assumes the property is also named sourceFromContainer.
112
         * It wires by constructor and by setter. By constructor is uses the type of sourceFromContainer. By setter it assumes the property is also named sourceFromContainer.
91
         *
113
         *