|
Homepage | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tinymarbles.RepositoryFactory
public class RepositoryFactory
This class is able to create Repository instances.
Repository,
open(),
createDefault()| Constructor Summary | |
|---|---|
RepositoryFactory(HibernateConversationFactory factory)
Constructs a new mFactory that will always use the given conversation locator |
|
| Method Summary | |
|---|---|
static RepositoryFactory |
createDefault()
Creates a new mFactory using a transactional hibernate locator |
protected ProxyWrapper |
createPersistentWrapper(Crud crud)
Creates a ProxyWrapper for persistent instances that uses the given Crud instance. |
protected CallbackFilter |
getCallbackFilter(Crud crud)
Gets the CallbackFilter used to create the Repository proxy. |
protected Callback[] |
getCallbacks(Crud crud,
ProxyWrapper pw)
Gets the Callbacks used to used to create the Repository proxy. |
ConversationFactory |
getFactory()
Gets the ConversationLocator instance used by this mFactory. |
protected Class[] |
getInterfaces(Crud crud)
Gets all the interfaces to be implemented by the Repository proxy. |
protected Class<? extends RepositoryImplementor> |
getRepositoryImplementorClass()
Returns the class that implements the repository. |
protected Crud |
newCrud()
Creates a new Crud instance, using this mFactory's ConversationLocator. |
Repository |
open()
Creates a new repository instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RepositoryFactory(HibernateConversationFactory factory)
factory - a ConversationFactory instance| Method Detail |
|---|
public static RepositoryFactory createDefault()
public Repository open()
getCallbacks(Crud, ProxyWrapper),
getCallbackFilter(Crud),
getInterfaces(Crud),
getFactory()protected Class<? extends RepositoryImplementor> getRepositoryImplementorClass()
RepositoryImpl.
protected Crud newCrud()
TransactionalHibernateCrud.
protected CallbackFilter getCallbackFilter(Crud crud)
crud - The Crud instance to be used by the repository
getCallbacks(Crud, ProxyWrapper),
open()
protected Callback[] getCallbacks(Crud crud,
ProxyWrapper pw)
crud - The Crud instance to be used by the repositorypw - TODO
DispatchingInterceptor,
open()protected ProxyWrapper createPersistentWrapper(Crud crud)
crud - a crud created by this repository factory
public ConversationFactory getFactory()
protected Class[] getInterfaces(Crud crud)
crud - The Crud instance to be used by the repository
open()
|
Homepage | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||