java.lang.Object
org.bzdev.obnaming.ObjectNamerLauncher
org.bzdev.obnaming.DefaultLauncher
- All Implemented Interfaces:
AutoCloseable
Default object-namer launcher.
Normally this class is not used directly, but instead is loaded
by using an SPI. It provides no additional classes beyond those
provided by its superclass.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.DefaultLauncher
(JSObject initializer) Constructor with additional class data. -
Method Summary
Modifier and TypeMethodDescriptionstatic InputStream
Get an input stream containing a YAML file describing the classes this launcher provides.Methods inherited from class org.bzdev.obnaming.ObjectNamerLauncher
clear, close, combine, createAPIMap, currentLauncher, exists, findRVFMethod, get, getArgumentClasses, getConstants, getConstructors, getFunctions, getLauncherDataNames, getLauncherNames, getMethods, getProviderKeyMap, getReturnClasses, keylistForArgumentClasses, keylistForConstants, keylistForConstructors, keylistForFunctions, keylistForMethods, keylistForMethods, keylistForReturnClasses, loadFromStream, newInstance, newInstance, process, process, process, process, process, remove, resetLoaders, set, variables
-
Constructor Details
-
DefaultLauncher
public DefaultLauncher(JSObject initializer) throws ClassNotFoundException, IOException, IllegalAccessException Constructor with additional class data. The initializer is a JSObject obtained by parsing a YAML file or by combining the results of parsing YAML files.- Parameters:
initializer
- an object describing the additional configuration; null if there is nothing else to configure- Throws:
ClassNotFoundException
- a class could not be foundIOException
- an IO error occurredIllegalAccessException
- - if this method cannot access a class, field, method, or constructor- See Also:
-
DefaultLauncher
Constructor.- Throws:
ClassNotFoundException
- a class could not be foundIOException
- an IO error occurredIllegalAccessException
- - if this method cannot access a class, field, method, or constructor
-
-
Method Details
-
getResourceAsStream
Get an input stream containing a YAML file describing the classes this launcher provides. In this case, the YAML file will not specify any objects.- Returns:
- the input stream
-