Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.jbossts.xts.environment;
 
 
class which ensures XTS properties are installed into the environment beans when they are created and provides access to those beans
public class XTSPropertyManager
    public static  WSCEnvironmentBean getWSCEnvironmentBean()
    {
        return BeanPopulator.getDefaultInstance(WSCEnvironmentBean.class);
    }
    {
        return BeanPopulator.getDefaultInstance(WSCFEnvironmentBean.class);
    }
    public static WSTEnvironmentBean getWSTEnvironmentBean()
    {
        return BeanPopulator.getDefaultInstance(WSTEnvironmentBean.class);
    }
    {
        return BeanPopulator.getDefaultInstance(RecoveryEnvironmentBean.class);
    }
    public static XTSEnvironmentBean getXTSEnvironmentBean()
    {
        return BeanPopulator.getDefaultInstance(XTSEnvironmentBean.class);
    }
    private static Properties mergeSystemProperties(Properties properties)
    {
        Properties systemProperties = System.getProperties();
        Enumeration<ObjectpropertyNames =  systemProperties.elements();
        while (propertyNames.hasMoreElements()) {
            String propertyName = (StringpropertyNames.nextElement();
            String propertyValue = (String) System.getProperty(propertyName);
            properties.setProperty(propertyNamepropertyValue);
        }
        
        return properties;
    }
    static Properties xtsProperties;
    static {
        try {
             = XTSPropertiesFactory.getDefaultProperties();
        } catch (Exception e) {
             = new Properties(System.getProperties());
        }
    }
New to GrepCode? Check out our FAQ X