@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.RepositoryExceptionpublic void closeSession(@Disposes
javax.jcr.Session session)
session - that will be disposedCopyright © 2013. All rights reserved.