|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.petite.BeanDefinition
public class BeanDefinition
Petite bean definition and cache. Consist of bean data that defines a bean
and cache, that might not be initialized (if null).
To initialize cache, get the bean instance from container.
| Field Summary | |
|---|---|
protected CtorInjectionPoint |
ctor
|
protected InitMethodPoint[] |
initMethods
|
protected MethodInjectionPoint[] |
methods
|
protected java.lang.String |
name
|
protected java.lang.String[] |
params
|
protected PropertyInjectionPoint[] |
properties
|
protected Scope |
scope
|
protected SetInjectionPoint[] |
sets
|
protected java.lang.Class |
type
|
protected WiringMode |
wiringMode
|
| Constructor Summary | |
|---|---|
BeanDefinition(java.lang.String name,
java.lang.Class type,
Scope scope,
WiringMode wiringMode)
|
|
| Method Summary | |
|---|---|
protected void |
addInitMethodPoints(InitMethodPoint[] methods)
Adds init methods. |
protected void |
addMethodInjectionPoint(MethodInjectionPoint mip)
Adds method injection point. |
protected void |
addPropertyInjectionPoint(PropertyInjectionPoint pip)
Adds property injection point. |
protected void |
addSetInjectionPoint(SetInjectionPoint sip)
Adds set injection point. |
CtorInjectionPoint |
getCtorInjectionPoint()
Returns constructor injection point. |
InitMethodPoint[] |
getInitMethodPoints()
Returns init method points. |
MethodInjectionPoint[] |
getMethodInjectionPoints()
Returns method injection points. |
java.lang.String |
getName()
Returns bean name. |
java.lang.String[] |
getParams()
Returns parameters. |
PropertyInjectionPoint[] |
getPropertyInjectionPoints()
Returns property injection points. |
java.lang.Class<? extends Scope> |
getScope()
Returns beans scope type. |
SetInjectionPoint[] |
getSetInjectionPoints()
Returns set injection points. |
java.lang.Class |
getType()
Returns bean type. |
WiringMode |
getWiringMode()
Returns wiring mode. |
protected java.lang.Object |
scopeLookup()
Delegates to Scope.lookup(String). |
protected void |
scopeRegister(java.lang.Object object)
Delegates to Scope.register(String, Object). |
protected void |
scopeRemove()
Delegates to Scope.remove(String). |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.String name
protected final java.lang.Class type
protected final Scope scope
protected final WiringMode wiringMode
protected CtorInjectionPoint ctor
protected PropertyInjectionPoint[] properties
protected SetInjectionPoint[] sets
protected MethodInjectionPoint[] methods
protected InitMethodPoint[] initMethods
protected java.lang.String[] params
| Constructor Detail |
|---|
public BeanDefinition(java.lang.String name,
java.lang.Class type,
Scope scope,
WiringMode wiringMode)
| Method Detail |
|---|
public java.lang.String getName()
public java.lang.Class getType()
public java.lang.Class<? extends Scope> getScope()
public WiringMode getWiringMode()
public CtorInjectionPoint getCtorInjectionPoint()
public PropertyInjectionPoint[] getPropertyInjectionPoints()
public SetInjectionPoint[] getSetInjectionPoints()
public MethodInjectionPoint[] getMethodInjectionPoints()
public InitMethodPoint[] getInitMethodPoints()
public java.lang.String[] getParams()
protected java.lang.Object scopeLookup()
Scope.lookup(String).
protected void scopeRegister(java.lang.Object object)
Scope.register(String, Object).
protected void scopeRemove()
Scope.remove(String).
protected void addPropertyInjectionPoint(PropertyInjectionPoint pip)
protected void addSetInjectionPoint(SetInjectionPoint sip)
protected void addMethodInjectionPoint(MethodInjectionPoint mip)
protected void addInitMethodPoints(InitMethodPoint[] methods)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||