|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.guvnor.server.repository.RepositoryStartupService
@Scope(value=APPLICATION) @Startup @Name(value="repositoryConfiguration") public class RepositoryStartupService
This startup class manages the JCR repository, sets it up if necessary.
Constructor Summary | |
---|---|
RepositoryStartupService()
|
Method Summary | |
---|---|
void |
close()
|
void |
create()
|
javax.jcr.Repository |
getRepositoryInstance()
|
javax.jcr.Session |
newSession(String userName)
This will create a new Session, based on the current user. |
javax.jcr.Session |
newSession(String userName,
String password)
This will create a new Session, based on the current user. |
static void |
registerCheckinListener()
Listen for changes to the repository - for inbox purposes |
static void |
removeListeners()
|
void |
setHomeDirectory(String home)
|
void |
setRepositoryConfigurator(String clazz)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryStartupService()
Method Detail |
---|
public javax.jcr.Repository getRepositoryInstance()
@Create public void create() throws ClassNotFoundException, InstantiationException, IllegalAccessException
ClassNotFoundException
InstantiationException
IllegalAccessException
public static void registerCheckinListener()
public static void removeListeners()
@Destroy public void close()
public void setHomeDirectory(String home)
public void setRepositoryConfigurator(String clazz) throws ClassNotFoundException, InstantiationException, IllegalAccessException
ClassNotFoundException
InstantiationException
IllegalAccessException
public javax.jcr.Session newSession(String userName)
public javax.jcr.Session newSession(String userName, String password)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |