jodd.petite
Class BeanDefinition

java.lang.Object
  extended by jodd.petite.BeanDefinition

public class BeanDefinition
extends Object

Petite bean definition, for internal use only.


Field Summary
 CtorInjectionPoint ctor
           
 InitMethodPoint[] initMethods
           
 MethodInjectionPoint[] methods
           
 String name
           
 String[] params
           
 PropertyInjectionPoint[] properties
           
protected  Scope scope
           
 SetInjectionPoint[] sets
           
 Class type
           
 WiringMode wiringMode
           
 
Constructor Summary
BeanDefinition(String name, Class type, Scope scope, WiringMode wiringMode)
           
 
Method Summary
 void addInitMethodPoints(InitMethodPoint[] methods)
          Adds init methods.
 void addMethodInjectionPoint(MethodInjectionPoint mip)
          Adds method injection point.
 void addPropertyInjectionPoint(PropertyInjectionPoint pip)
          Adds property injection point.
 void addSetInjectionPoint(SetInjectionPoint sip)
          Adds set injection point.
 Object scopeLookup()
          Delegates to Scope.lookup(String).
 void scopeRegister(Object object)
          Delegates to Scope.register(String, Object).
 void scopeRemove()
          Delegates to Scope.remove(String).
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final String name

type

public final Class type

scope

protected final Scope scope

wiringMode

public final WiringMode wiringMode

ctor

public CtorInjectionPoint ctor

properties

public PropertyInjectionPoint[] properties

sets

public SetInjectionPoint[] sets

methods

public MethodInjectionPoint[] methods

initMethods

public InitMethodPoint[] initMethods

params

public String[] params
Constructor Detail

BeanDefinition

public BeanDefinition(String name,
                      Class type,
                      Scope scope,
                      WiringMode wiringMode)
Method Detail

scopeLookup

public Object scopeLookup()
Delegates to Scope.lookup(String).


scopeRegister

public void scopeRegister(Object object)
Delegates to Scope.register(String, Object).


scopeRemove

public void scopeRemove()
Delegates to Scope.remove(String).


addPropertyInjectionPoint

public void addPropertyInjectionPoint(PropertyInjectionPoint pip)
Adds property injection point.


addSetInjectionPoint

public void addSetInjectionPoint(SetInjectionPoint sip)
Adds set injection point.


addMethodInjectionPoint

public void addMethodInjectionPoint(MethodInjectionPoint mip)
Adds method injection point.


addInitMethodPoints

public void addInitMethodPoints(InitMethodPoint[] methods)
Adds init methods.


toString

public String toString()
Overrides:
toString in class Object