Rev 41 | Rev 51 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 41 | Rev 45 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | * Configure a bean to be returned with the given implementation when {@link #get(String)} is called.
|
33 | * Configure a bean to be returned with the given implementation when {@link #get(String)} is called.
|
34 | *
|
34 | *
|
35 | * @param key The key representing the bean to return. The name of the bean in the container.
|
35 | * @param key The key representing the bean to return. The name of the bean in the container.
|
36 | * @param klass The class used to instantiate the bean, in other words, its implementation.
|
36 | * @param klass The class used to instantiate the bean, in other words, its implementation.
|
37 | * @param singleton A boolean to indicate if this bean will be a singleton.
|
37 | * @param singleton A boolean to indicate if this bean will be a singleton.
|
38 | * @return The component created. (Fluent API)
|
- | |
- | 38 | * @return The component created as a ConfigurableComponent. (Fluent API)
|
|
39 | */
|
39 | */
|
40 | public Component ioc(String key, Class<? extends Object> klass, boolean singleton); |
- | |
- | 40 | public ConfigurableComponent ioc(String key, Class<? extends Object> klass, boolean singleton); |
|
41 | 41 | ||
42 | /**
|
42 | /**
|
43 | * Same as {@link #ioc(String, Class, boolean)} except that it assumes
|
43 | * Same as {@link #ioc(String, Class, boolean)} except that it assumes
|
44 | * singleton is false.
|
44 | * singleton is false.
|
45 | *
|
45 | *
|
46 | * @param key
|
46 | * @param key
|
47 | * @param klass
|
47 | * @param klass
|
48 | * @return The component created. (Fluent API)
|
- | |
- | 48 | * @return The component created as a ConfigurableComponent. (Fluent API)
|
|
49 | */
|
49 | */
|
50 | public Component ioc(String key, Class<?extends Object> klass); |
- | |
- | 50 | public ConfigurableComponent ioc(String key, Class<?extends Object> klass); |
|
51 | 51 | ||
52 | /**
|
52 | /**
|
53 | * Set up IoC based on the component passed.
|
53 | * Set up IoC based on the component passed.
|
54 | *
|
54 | *
|
55 | * @param key The key representing the bean to return. The name of the bean in the container.
|
55 | * @param key The key representing the bean to return. The name of the bean in the container.
|
56 | * @param component The component for the IoC.
|
56 | * @param component The component for the IoC.
|
57 | * @return The component passed as a parameter. (Fluent API)
|
- | |
- | 57 | * @return The component passed as a parameter.
|
|
58 | * @see Component
|
58 | * @see Component
|
59 | */
|
59 | */
|
60 | public Component ioc(String key, Component component); |
60 | public Component ioc(String key, Component component); |
61 | 61 | ||
62 | /**
|
62 | /**
|