jodd.petite
Class BeanDefinition

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

public class BeanDefinition
extends java.lang.Object

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

name

protected final java.lang.String name

type

protected final java.lang.Class type

scope

protected final Scope scope

wiringMode

protected final WiringMode wiringMode

ctor

protected CtorInjectionPoint ctor

properties

protected PropertyInjectionPoint[] properties

sets

protected SetInjectionPoint[] sets

methods

protected MethodInjectionPoint[] methods

initMethods

protected InitMethodPoint[] initMethods

params

protected java.lang.String[] params
Constructor Detail

BeanDefinition

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

getName

public java.lang.String getName()
Returns bean name.


getType

public java.lang.Class getType()
Returns bean type.


getScope

public java.lang.Class<? extends Scope> getScope()
Returns beans scope type.


getWiringMode

public WiringMode getWiringMode()
Returns wiring mode.


getCtorInjectionPoint

public CtorInjectionPoint getCtorInjectionPoint()
Returns constructor injection point.


getPropertyInjectionPoints

public PropertyInjectionPoint[] getPropertyInjectionPoints()
Returns property injection points.


getSetInjectionPoints

public SetInjectionPoint[] getSetInjectionPoints()
Returns set injection points.


getMethodInjectionPoints

public MethodInjectionPoint[] getMethodInjectionPoints()
Returns method injection points.


getInitMethodPoints

public InitMethodPoint[] getInitMethodPoints()
Returns init method points.


getParams

public java.lang.String[] getParams()
Returns parameters.


scopeLookup

protected java.lang.Object scopeLookup()
Delegates to Scope.lookup(String).


scopeRegister

protected void scopeRegister(java.lang.Object object)
Delegates to Scope.register(String, Object).


scopeRemove

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


addPropertyInjectionPoint

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


addSetInjectionPoint

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


addMethodInjectionPoint

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


addInitMethodPoints

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


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2013 Jodd Team