public final class ModuleConfigFileParser extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER
The class logger.
|
| Modifier | Constructor and Description |
|---|---|
private |
ModuleConfigFileParser()
Private Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private static Pair<Class<?>,Class<?>> |
createPair(Registration rl,
RegistrationEntry re)
CReate a pair object with interface+implementation.
|
private static Class<?> |
getClassObject(String className)
Gets the class object.
|
static List<Pair<Class<?>,Class<?>>> |
getRegistrations(String fileName)
Get all Component Registrations by pair Interface + Implementation.
|
static List<Class<?>> |
getWarmUp(String fileName)
Get the list of Component to start during WarmUp.
|
static InputStream |
loadInputStream(String custConfFileName)
TRy to load a custom resource file.
|
static Module |
parseFile(String fileName)
Parses the Module.xml.
|
public static InputStream loadInputStream(String custConfFileName)
custConfFileName - the custom resource file to loadpublic static Module parseFile(String fileName)
fileName - the module file namepublic static List<Pair<Class<?>,Class<?>>> getRegistrations(String fileName)
fileName - the Module file nameprivate static Pair<Class<?>,Class<?>> createPair(Registration rl, RegistrationEntry re) throws ClassNotFoundException
rl - the interface definitionre - the implementation definitionClassNotFoundException - if one of the class cannot be loadedpublic static List<Class<?>> getWarmUp(String fileName)
fileName - the module file nameprivate static Class<?> getClassObject(String className) throws ClassNotFoundException
className - the class nameClassNotFoundException - the class not found exceptionCopyright © 2011–2015 JRebirth OSS. All rights reserved.