|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.ioc.DefaultComponent
org.mentawai.ioc.ScopeComponent
public class ScopeComponent
DefaultComponent with a scope attribute.
| Constructor Summary | |
|---|---|
ScopeComponent(Class<? extends Object> klass,
int scope)
Creates a new ScopeComponent for the given class with the given scope. |
|
ScopeComponent(Class<? extends Object> klass,
List<Object> initValues,
int scope)
Creates a new ScopeComponent for the given class with the given init (constructor) values in the given scope. |
|
ScopeComponent(Class<? extends Object> klass,
List<Object> initValues,
Map<String,Object> props,
int scope)
Creates a new ScopeComponent for the given class with the given property map and the given init (constructor) values in the given scope. |
|
ScopeComponent(Class<? extends Object> klass,
Map<String,Object> props,
int scope)
Creates a new ScopeComponent for the given class with the given property map in the given scope. |
|
| Method Summary | |
|---|---|
int |
getScope()
|
| Methods inherited from class org.mentawai.ioc.DefaultComponent |
|---|
addInitValue, addInitValues, addProperties, addProperty, getBean, getType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScopeComponent(Class<? extends Object> klass,
int scope)
klass - The class used to create new instances.scope - The scope.
public ScopeComponent(Class<? extends Object> klass,
List<Object> initValues,
int scope)
klass - The class used to create new instances.initValues - The values for the constructor.scope - The scope
public ScopeComponent(Class<? extends Object> klass,
Map<String,Object> props,
int scope)
klass - The class used to create new instances.props - The properties that need to be injected in each instance.scope - The scope
public ScopeComponent(Class<? extends Object> klass,
List<Object> initValues,
Map<String,Object> props,
int scope)
klass - The class used to create new instances.initValues - The values for the constructor.props - The properties that need to be injected in each instance.scope - The scope| Method Detail |
|---|
public int getScope()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||