public class SpiLoader extends Object
Constructor and Description |
---|
SpiLoader() |
Modifier and Type | Method and Description |
---|---|
static Object |
loadFromServices(String propertyName)
Use the Services API (as detailed in the JAR specification), if
available, to determine the classname.
|
static Object |
loadFromSystemProperty(String propertyName)
Use the system property
|
static Object |
loadService(String propertyName,
String defaultFactory)
This method uses the algorithm below
1.
|
public static Object loadService(String propertyName, String defaultFactory)
propertyName
- StringdefaultFactory
- Stringpublic static Object loadFromServices(String propertyName)
propertyName
- StringCopyright © 2008–2015 JBoss.org. All rights reserved.