|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FarragoSessionFactory
FarragoSessionFactory defines an interface with factory methods used to create new sessions and related objects.
| Method Summary | |
|---|---|
void |
applyFennelExtensionParameters(Properties map)
Allows extensions of Farrago to add their own parameters to the Fennel configuration parameters. |
void |
cleanupSessions()
Gives this factory a chance to clean up after a session has been closed. |
void |
defineResourceBundles(List<ResourceBundle> bundleList)
Defines resource bundles to be used for localizing model object names. |
FarragoPluginClassLoader |
getPluginClassLoader()
|
FennelCmdExecutor |
newFennelCmdExecutor()
Creates a new intrepreter for Fennel commands. |
FennelTxnContext |
newFennelTxnContext(FarragoRepos repos,
FennelDbHandle fennelDbHandle)
Creates a new Fennel transaction context. |
FarragoSessionModelExtension |
newModelExtension(FarragoPluginClassLoader pluginClassLoader,
FemJar femJar)
Loads a model extension plugin instance. |
FarragoSession |
newReentrantSession(FarragoSession session)
Creates a new reentrant session. |
FarragoRepos |
newRepos(FarragoAllocationOwner owner,
boolean userRepos)
Opens a new repositor instance. |
FarragoSession |
newSession(String url,
Properties info)
Creates a new session. |
FarragoSessionTxnMgr |
newTxnMgr()
|
void |
releaseReentrantSession(FarragoSession session)
Release a reentrant session. |
void |
setPluginClassLoader(FarragoPluginClassLoader pluginClassLoader)
Sets the class loader for plugins. |
void |
specializedInitialization(FarragoAllocationOwner owner)
Allows extensions of Farrago to perform their own initialization tasks. |
void |
specializedShutdown()
Allows extensions of Farrago to perform their own shutdown tasks. |
| Methods inherited from interface net.sf.farrago.session.FarragoSessionPersonalityFactory |
|---|
newSessionPersonality |
| Method Detail |
|---|
FarragoSession newSession(String url,
Properties info)
url - (same as for JDBC connect)info - (same as for JDBC connect)
FarragoSession newReentrantSession(FarragoSession session)
session - the existing session on which to base the re-entrant
sessionvoid releaseReentrantSession(FarragoSession session)
FennelCmdExecutor newFennelCmdExecutor()
FarragoRepos newRepos(FarragoAllocationOwner owner,
boolean userRepos)
owner - the object which should own the new reposuserRepos - true for user repos; false for system repos
FennelTxnContext newFennelTxnContext(FarragoRepos repos,
FennelDbHandle fennelDbHandle)
repos - repos for transaction metadata accessfennelDbHandle - handle for database to access
FarragoSessionTxnMgr newTxnMgr()
void setPluginClassLoader(FarragoPluginClassLoader pluginClassLoader)
pluginClassLoader - classloader to useFarragoPluginClassLoader getPluginClassLoader()
FarragoSessionModelExtension newModelExtension(FarragoPluginClassLoader pluginClassLoader,
FemJar femJar)
pluginClassLoader - FarragoPluginClassLoader to use to load the
pluginfemJar - catalog descriptor for jar from which plugin is loadedvoid applyFennelExtensionParameters(Properties map)
map - a non-null, modifiable Map where configuration parameters canvoid specializedInitialization(FarragoAllocationOwner owner)
owner - the object that should own any allocated objectsvoid specializedShutdown()
void cleanupSessions()
void defineResourceBundles(List<ResourceBundle> bundleList)
bundleList - receives instances of ResourceBundle
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||