站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.1.0 cr1 API 英文版文档

HibernateSessionFactory (JBoss Seam API Documentation) - JBoss Seam 1.1.0 cr1 API 英文版文档


org.jboss.seam.core
Class HibernateSessionFactory

java.lang.Object
  extended by org.jboss.seam.microcontainer.HibernateFactory
      extended by org.jboss.seam.core.HibernateSessionFactory

@Scope(value=APPLICATION)
@Intercept(value=NEVER)
@Startup(depends="org.jboss.seam.core.microcontainer")
@Install(dependencies="org.jboss.seam.core.microcontainer")
public class HibernateSessionFactory
extends HibernateFactory

A Seam component that boostraps a Hibernate SessionFactory

Author:
Gavin King

Constructor Summary
HibernateSessionFactory()
           
 
Method Summary
 org.hibernate.SessionFactory getSessionFactory()
           
 void shutdown()
           
 void startup()
           
 
Methods inherited from class org.jboss.seam.microcontainer.HibernateFactory
createSessionFactory, getCfgProperties, getCfgResourceName, getMappingClasses, getMappingFiles, getMappingJars, getMappingPackages, getMappingResources, setCfgProperties, setCfgResourceName, setMappingClasses, setMappingFiles, setMappingJars, setMappingPackages, setMappingResources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateSessionFactory

public HibernateSessionFactory()
Method Detail

getSessionFactory

@Unwrap
public org.hibernate.SessionFactory getSessionFactory()
Overrides:
getSessionFactory in class HibernateFactory

startup

@Create
public void startup()
             throws Exception
Throws:
Exception

shutdown

@Destroy
public void shutdown()