Rev 25 | Rev 40 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 25 | Rev 39 | ||
---|---|---|---|
Line 50... | Line 50... | ||
50 | public Component ioc(String key, Class<?extends Object> klass); |
50 | public Component 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 component The component for the IoC.
|
56 | * @param component The component for the IoC.
|
56 | * @return The component passed as a parameter. (Fluent API)
|
57 | * @return The component passed as a parameter. (Fluent API)
|
57 | * @see Component
|
58 | * @see Component
|
58 | */
|
59 | */
|
59 | public Component ioc(Component component); |
- | |
- | 60 | public Component ioc(String key, Component component); |
|
60 | 61 | ||
61 | /**
|
62 | /**
|
62 | * Configure a bean dependency to be auto-wired by the container. In general you want the
|
63 | * Configure a bean dependency to be auto-wired by the container. In general you want the
|
63 | * type of the dependency to be an interface, for loosely couple dependencies. It works like that:<br/><br/>
|
64 | * type of the dependency to be an interface, for loosely couple dependencies. It works like that:<br/><br/>
|
64 | *
|
65 | *
|