Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source
   * Copyright 2009, Red Hat Middleware LLC, and individual contributors
   * as indicated by the @author tags.
   * See the copyright.txt in the distribution for a
   * full listing of individual contributors.
   * This copyrighted material is made available to anyone wishing to use,
   * modify, copy, or redistribute it subject to the terms and conditions
   * of the GNU Lesser General Public License, v. 2.1.
  * This program is distributed in the hope that it will be useful, but WITHOUT A
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
  * You should have received a copy of the GNU Lesser General Public License,
  * v.2.1 along with this distribution; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  * MA  02110-1301, USA.
  *
  * (C) 2009,
  * @author JBoss, a division of Red Hat.
  */
 package com.arjuna.ats.txoj.common;
 
 import java.io.File;
 
A JavaBean containing configuration properties for the transactional object system.

Author(s):
Jonathan Halliday (jonathan.halliday@redhat.com)
 
 @PropertyPrefix(prefix = "com.arjuna.ats.txoj.lockstore.")
 public class TxojEnvironmentBean implements TxojEnvironmentBeanMBean
 {
     private volatile String lockStoreDir = System.getProperty("user.dir") + . + "LockStore";
     private volatile String lockStoreType = BasicLockStore.class.getName();
     private volatile String multipleLockStore = null;
     private volatile String singleLockStore = BasicLockStore.class.getName();
     private volatile boolean allowNestedLocking = true;

    
Returns the directory path used for storing persistent locks. Default: {user.dir}/LockStore Equivalent deprecated property: com.arjuna.ats.txoj.lockstore.lockStoreDir

Returns:
the path to the lock directory.
 
     public String getLockStoreDir()
     {
         return ;
     }

    
Sets the directory path to be used for storing persistent locks.

Parameters:
lockStoreDir the path to the lock directory.
 
     public void setLockStoreDir(String lockStoreDir)
     {
         this. = lockStoreDir;
     }

    
Returns the name of the lock store implementation. Default: null Equivalent deprecated property: com.arjuna.ats.txoj.lockstore.lockStoreType

Returns:
the name of the lock store implementation.
 
     
     public String getLockStoreType()
     {
         return ;
     }

    
Sets the name of the lock store implementation.

Parameters:
lockStoreType the name of the lock store implementation.
 
     public void setLockStoreType(String lockStoreType)
     {
         this. = lockStoreType;
     }

    
Returns the name of the multiple lock store implementation. Default: null Equivalent deprecated property: com.arjuna.ats.txoj.lockstore.multipleLockStore

Returns:
the name of the multiple lock store implementation.
 
     public String getMultipleLockStore()
     {
         return ;
    }

    
Sets the name of the multiple lock store implementation.

Parameters:
multipleLockStore the name of the multiple lock store implementation.
    public void setMultipleLockStore(String multipleLockStore)
    {
        this. = multipleLockStore;
    }

    
Sets the name of the single lock store implementation. Default: "BasicLockStore" TODO test Equivalent deprecated property: com.arjuna.ats.txoj.lockstore.singleLockStore

Returns:
the name of the single lock store implementation.
    public String getSingleLockStore()
    {
        return ;
    }

    
Sets the name of the single lock store implementation.

Parameters:
singleLockStore the name of the single lock store implementation.
    public void setSingleLockStore(String singleLockStore)
    {
        this. = singleLockStore;
    }

    
Returns if nested locking is allowed or not. Default: true Equivalent deprecated property: com.arjuna.ats.txoj.lockstore.allowNestedLocking

Returns:
true if nested locking is enabled, false otherwise.
    public boolean isAllowNestedLocking()
    {
        return ;
    }

    
Sets if nested locking is allowed or not.

Parameters:
allowNestedLocking true to enable, false to disable.
    public void setAllowNestedLocking(boolean allowNestedLocking)
    {
        this. = allowNestedLocking;
    }
New to GrepCode? Check out our FAQ X