public class BeanDefinition
extends java.lang.Object
null).
To initialize cache, get the bean instance from container.| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
BeanDefinition(java.lang.String name,
java.lang.Class type,
Scope scope,
WiringMode wiringMode) |
| Modifier and Type | Method and Description |
|---|---|
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() |
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
public BeanDefinition(java.lang.String name,
java.lang.Class type,
Scope scope,
WiringMode wiringMode)
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.ObjectCopyright © 2003-2013 Jodd Team