net.sf.shineframework.server.dal.dao.spring
Class DaoProxyFactoryBean
java.lang.Object
net.sf.shineframework.server.dal.dao.spring.DaoProxyFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.FactoryBean
public class DaoProxyFactoryBean
- extends java.lang.Object
- implements org.springframework.beans.factory.FactoryBean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DaoProxyFactoryBean
public DaoProxyFactoryBean()
getDaoInterface
public java.lang.String getDaoInterface()
getObject
public java.lang.Object getObject()
throws java.lang.Exception
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean
- Throws:
java.lang.Exception
getObjectType
public java.lang.Class getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean
setDaoInterface
public void setDaoInterface(java.lang.String daoInterface)
setManagedClassName
public void setManagedClassName(java.lang.String managedClassName)
- The managed classname. Allows to override the guessing mechanism of the
managed class. This should be used when not implementing a custom-dao
interface, just using one of the pre-existing ones (Dao, NamedDao or
FwDao).
The guessing mechanism:
- if the managed classname is provided - use it
- check the generic parameter of the interface and use that. For
example: if the custom dao is EmployeeDao, for the guessing mechanism to
work, this custom dao should extend Dao<Employee> (or a different
parent dao such as NamedDao)
- Parameters:
managedClassName
-
setSuperClassName
public void setSuperClassName(java.lang.String superClassName)
- The super classname. Allows to override the guessing mechanism of the
superclass. This can be used to create a custom base dao. The guessing
mechanism works in the following way:
- use superClassName if provided
- if NamedDao is the dao interface or the dao interface is derived
from it - use BaseNamedDao
- if FwDao is the dao interface or the dao interface is derived from
it - use BaseFwDao
- otherwise - use BaseDao
- Parameters:
parentDaoClassName
-
Copyright © 2007 sourceforge.net. All Rights Reserved.