net.sourceforge.jabm.util
Class CombiObjectFactory

java.lang.Object
  extended by net.sourceforge.jabm.util.CombiObjectFactory
All Implemented Interfaces:
org.springframework.beans.factory.ObjectFactory

public class CombiObjectFactory
extends java.lang.Object
implements org.springframework.beans.factory.ObjectFactory

 

Field Summary
protected  int count
           
protected  int currentFactory
           
protected  java.util.ArrayList<org.springframework.beans.factory.ObjectFactory> factories
           
protected  java.util.ArrayList<java.lang.Integer> numberOfObjectsPerFactory
           
protected  boolean overflowed
           
protected  int overFlowFactory
           
 
Constructor Summary
CombiObjectFactory()
           
CombiObjectFactory(java.util.ArrayList<org.springframework.beans.factory.ObjectFactory> factories, java.util.ArrayList<java.lang.Integer> numberOfObjectsPerFactory)
           
 
Method Summary
 java.util.ArrayList<org.springframework.beans.factory.ObjectFactory> getFactories()
           
 java.util.Map<org.springframework.beans.factory.ObjectFactory,java.lang.Integer> getFactoryMap()
           
 java.util.ArrayList<java.lang.Integer> getNumberOfObjectsPerFactory()
           
 java.lang.Object getObject()
           
 int getOverFlowFactory()
           
 void nextFactory()
           
 void setFactories(java.util.ArrayList<org.springframework.beans.factory.ObjectFactory> factories)
           
 void setFactoryMap(java.util.Map<org.springframework.beans.factory.ObjectFactory,java.lang.Integer> factoryMap)
           
 void setNumberOfObjectsPerFactory(java.util.ArrayList<java.lang.Integer> numberOfObjectsPerFactory)
           
 void setOverFlowFactory(int overFlowFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numberOfObjectsPerFactory

protected java.util.ArrayList<java.lang.Integer> numberOfObjectsPerFactory

factories

protected java.util.ArrayList<org.springframework.beans.factory.ObjectFactory> factories

currentFactory

protected int currentFactory

count

protected int count

overFlowFactory

protected int overFlowFactory

overflowed

protected boolean overflowed
Constructor Detail

CombiObjectFactory

public CombiObjectFactory(java.util.ArrayList<org.springframework.beans.factory.ObjectFactory> factories,
                          java.util.ArrayList<java.lang.Integer> numberOfObjectsPerFactory)

CombiObjectFactory

public CombiObjectFactory()
Method Detail

getObject

public java.lang.Object getObject()
                           throws org.springframework.beans.BeansException
Specified by:
getObject in interface org.springframework.beans.factory.ObjectFactory
Throws:
org.springframework.beans.BeansException

nextFactory

public void nextFactory()

getOverFlowFactory

public int getOverFlowFactory()

setOverFlowFactory

public void setOverFlowFactory(int overFlowFactory)

getNumberOfObjectsPerFactory

public java.util.ArrayList<java.lang.Integer> getNumberOfObjectsPerFactory()

setNumberOfObjectsPerFactory

public void setNumberOfObjectsPerFactory(java.util.ArrayList<java.lang.Integer> numberOfObjectsPerFactory)

getFactories

public java.util.ArrayList<org.springframework.beans.factory.ObjectFactory> getFactories()

setFactories

public void setFactories(java.util.ArrayList<org.springframework.beans.factory.ObjectFactory> factories)

setFactoryMap

public void setFactoryMap(java.util.Map<org.springframework.beans.factory.ObjectFactory,java.lang.Integer> factoryMap)

getFactoryMap

public java.util.Map<org.springframework.beans.factory.ObjectFactory,java.lang.Integer> getFactoryMap()