Index: jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
===================================================================
--- jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java (revision 566082)
+++ jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java (working copy)
@@ -1459,7 +1459,7 @@
* @return the timestamp when the workspace has become idle or zero if
* the workspace is not idle.
*/
- long getIdleTimestamp() {
+ protected long getIdleTimestamp() {
return idleTimestamp;
}
@@ -1470,7 +1470,7 @@
*
* @param ts timestamp when workspace has become idle.
*/
- void setIdleTimestamp(long ts) {
+ protected void setIdleTimestamp(long ts) {
idleTimestamp = ts;
}
@@ -1499,7 +1499,7 @@
*
* @return the workspace file system
*/
- FileSystem getFileSystem() {
+ protected FileSystem getFileSystem() {
if (!isInitialized()) {
throw new IllegalStateException("workspace '" + getName()
+ "' not initialized");
@@ -1515,7 +1515,7 @@
* @throws RepositoryException if the persistence manager could not be
* instantiated/initialized
*/
- PersistenceManager getPersistenceManager()
+ protected PersistenceManager getPersistenceManager()
throws RepositoryException {
if (!isInitialized()) {
throw new IllegalStateException("workspace '" + getName()
@@ -1532,7 +1532,7 @@
* @throws RepositoryException if the workspace item state provider
* could not be created
*/
- SharedItemStateManager getItemStateProvider()
+ protected SharedItemStateManager getItemStateProvider()
throws RepositoryException {
if (!isInitialized()) {
throw new IllegalStateException("workspace '" + getName()
@@ -1547,7 +1547,7 @@
*
* @return the observation dispatcher for this workspace
*/
- ObservationDispatcher getObservationDispatcher() {
+ protected ObservationDispatcher getObservationDispatcher() {
if (!isInitialized()) {
throw new IllegalStateException("workspace '" + getName()
+ "' not initialized");
@@ -1563,7 +1563,7 @@
* if no SearchManager
* @throws RepositoryException if the search manager could not be created
*/
- SearchManager getSearchManager() throws RepositoryException {
+ protected SearchManager getSearchManager() throws RepositoryException {
if (!isInitialized()) {
throw new IllegalStateException("workspace '" + getName()
+ "' not initialized");
@@ -1595,7 +1595,7 @@
* @return the lock manager for this workspace
* @throws RepositoryException if the lock manager could not be created
*/
- LockManager getLockManager() throws RepositoryException {
+ protected LockManager getLockManager() throws RepositoryException {
if (!isInitialized()) {
throw new IllegalStateException("workspace '" + getName()
+ "' not initialized");
@@ -1659,7 +1659,7 @@
* initialized, false if it is already initialized.
* @throws RepositoryException if an error occured during the initialization
*/
- boolean initialize() throws RepositoryException {
+ protected boolean initialize() throws RepositoryException {
// check initialize status
try {
initLock.readLock().acquire();
@@ -1742,7 +1742,7 @@
* @param maxIdleTime amount of time in mmilliseconds before an idle
* workspace is automatically shutdown.
*/
- void disposeIfIdle(long maxIdleTime) {
+ protected void disposeIfIdle(long maxIdleTime) {
try {
initLock.readLock().acquire();
} catch (InterruptedException e) {
@@ -1862,7 +1862,7 @@
*
* @throws TransactionException
*/
- void lockAcquire() throws TransactionException {
+ protected void lockAcquire() throws TransactionException {
try {
xaLock.acquire();
} catch (InterruptedException e) {
@@ -1876,7 +1876,7 @@
* the {@link XASessionImpl} in order to lock all internal resources
* during a commit.
*/
- void lockRelease() {
+ protected void lockRelease() {
xaLock.release();
}