@Named @ApplicationScoped public class SessionProvider extends Object
Constructor and Description |
---|
SessionProvider() |
Modifier and Type | Method and Description |
---|---|
void |
closeSession(javax.jcr.Session session)
Disposer method for a JCRSession.
|
javax.jcr.Session |
getSession()
Producer method for a JCRSession.
|
@Produces @Named @RequestScoped public javax.jcr.Session getSession() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void closeSession(@Disposes javax.jcr.Session session)
session
- that will be disposedCopyright © 2013. All rights reserved.