org.drools.guvnor.server.repository
Class RepositoryStartupService

java.lang.Object
  extended by org.drools.guvnor.server.repository.RepositoryStartupService

@Scope(value=APPLICATION)
@Startup
@Name(value="repositoryConfiguration")
public class RepositoryStartupService
extends Object

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

RepositoryStartupService

public RepositoryStartupService()
Method Detail

getRepositoryInstance

public javax.jcr.Repository getRepositoryInstance()

create

@Create
public void create()
            throws ClassNotFoundException,
                   InstantiationException,
                   IllegalAccessException
Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException

registerCheckinListener

public static void registerCheckinListener()
Listen for changes to the repository - for inbox purposes


removeListeners

public static void removeListeners()

close

@Destroy
public void close()

setHomeDirectory

public void setHomeDirectory(String home)

setRepositoryConfigurator

public void setRepositoryConfigurator(String clazz)
                               throws ClassNotFoundException,
                                      InstantiationException,
                                      IllegalAccessException
Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException

newSession

public javax.jcr.Session newSession(String userName)
This will create a new Session, based on the current user.

Returns:

newSession

public javax.jcr.Session newSession(String userName,
                                    String password)
This will create a new Session, based on the current user.

Returns:


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.