public class DaoInvokerFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
REPOSITORY_KEY |
Modifier and Type | Method and Description |
---|---|
DaoInvoker |
create(Object dao,
ObjectStore objectStore)
Creates a DaoInvoker depending on the DAO object.
|
static DaoInvokerFactory |
getInstance()
Returns the DaoInvokerFactory instance
|
public static final String REPOSITORY_KEY
public static final DaoInvokerFactory getInstance()
public DaoInvoker create(Object dao, ObjectStore objectStore)
Dao
, MappingDao
,
Queryable
, Locator
or Flushable
then a InterfaceDaoInvoker
is created and returned. If the DAO class is annotated with the Dao
annotation
then a AnnotatedDaoInvoker
is created and returned. If neither is the case then a
IllegalArgumentException
exception is thrown.dao
- The DAO for which the invoker instantiatedobjectStore
- An object store for caching and retrieving a cached AnnotatedDaoRuntimeInfoFactory
object.IllegalArgumentException
- if the DAO object doesn't match for a InterfaceDaoInvoker
or AnnotatedDaoInvoker
.Copyright © 2020. All rights reserved.