public class LegacyPropertiesLoader extends Object
LegacyPropertiesLoader loads a EJB client properties file based on the following algorithm:
jboss.ejb.client.properties.file.path system property is set. If it's set then this
LegacyPropertiesLoader uses that as the file path to the properties file and loads and returns the properties.
jboss.ejb.client.properties.file.path system property is not set then this LegacyPropertiesLoader
then looks for a file named jboss-ejb-client.properties using an appropriate ClassLoader. If the
thread context classloader is set, then it uses that to find the jboss-ejb-client.properties
file. Else it uses the ClassLoader which loaded the LegacyPropertiesLoader class.
If such a file is found by the classloader, then this LegacyPropertiesLoader loads and returns
those properties. Else it returns null
This step of looking for a jboss-ejb-client.properties file using a ClassLoader can be
completely skipped by setting the jboss.ejb.client.properties.skip.classloader.scan system property
to true
| Constructor and Description |
|---|
LegacyPropertiesLoader() |
| Modifier and Type | Method and Description |
|---|---|
static Properties |
loadEJBClientProperties() |
public static Properties loadEJBClientProperties()
Copyright © 2017 JBoss by Red Hat. All rights reserved.