net.sf.sido.spring
Class DOFactoryLoader

java.lang.Object
  extended by net.sf.sido.spring.DOFactoryLoader

public class DOFactoryLoader
extends Object

Loads the DOFactory and sets it as a default. If no DOFactory is defined in the context, it will create one according to the given parameters. If no DataFactory is provided to create this DOFactory, a typed factory is created.


Constructor Summary
DOFactoryLoader(org.springframework.context.ApplicationContext applicationContext)
           
 
Method Summary
protected  DataFactory createDataFactory()
           
protected
<T> T
getByType(Class<T> type)
           
protected  DataFactory getDataFactory()
           
 DataFactory getDefaultDataFactory()
           
 DOFactory getDefaultDOFactory()
           
protected  DOFactory getDOFactory()
           
 void load()
           
 void setDefaultDataFactory(DataFactory defaultDataFactory)
           
 void setDefaultDOFactory(DOFactory defaultDOFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOFactoryLoader

public DOFactoryLoader(org.springframework.context.ApplicationContext applicationContext)
Method Detail

load

@PostConstruct
public void load()

getDOFactory

protected DOFactory getDOFactory()

getDataFactory

protected DataFactory getDataFactory()

createDataFactory

protected DataFactory createDataFactory()

getByType

protected <T> T getByType(Class<T> type)

getDefaultDOFactory

public DOFactory getDefaultDOFactory()

setDefaultDOFactory

public void setDefaultDOFactory(DOFactory defaultDOFactory)

getDefaultDataFactory

public DataFactory getDefaultDataFactory()

setDefaultDataFactory

public void setDefaultDataFactory(DataFactory defaultDataFactory)


Copyright © 2011. All Rights Reserved.