|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.picocontainer.script.ScriptedContainerBuilderFactory
public class ScriptedContainerBuilderFactory
Factory class for scripted container builders of various scripting languages. When using the constructors taking a File, the extensions must be one of the following:
| Constructor Summary | |
|---|---|
ScriptedContainerBuilderFactory(File compositionFile)
Creates a ScriptedContainerBuilderFactory with default script builder resolver and context class loader |
|
ScriptedContainerBuilderFactory(File compositionFile,
ClassLoader classLoader)
Creates a ScriptedContainerBuilderFactory with default script builder resolver |
|
ScriptedContainerBuilderFactory(File compositionFile,
ClassLoader classLoader,
ScriptedBuilderNameResolver scriptedBuilderResolver)
Creates a ScriptedContainerBuilderFactory |
|
ScriptedContainerBuilderFactory(Reader composition,
String builderClassName)
Creates a ScriptedContainerBuilderFactory with context class loader |
|
ScriptedContainerBuilderFactory(Reader composition,
String builderClassName,
ClassLoader classLoader)
Creates a ScriptedContainerBuilderFactory |
|
ScriptedContainerBuilderFactory(URL compositionURL)
Creates a ScriptedContainerBuilderFactory with default script builder resolver and context class loader |
|
ScriptedContainerBuilderFactory(URL compositionURL,
ClassLoader classLoader,
ScriptedBuilderNameResolver builderClassResolver)
Creates a ScriptedContainerBuilderFactory |
|
ScriptedContainerBuilderFactory(URL compositionURL,
String builderClassName,
ClassLoader classLoader)
Creates a ScriptedContainerBuilderFactory |
|
| Method Summary | |
|---|---|
ScriptedContainerBuilder |
getContainerBuilder()
Returns the created container builder instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptedContainerBuilderFactory(File compositionFile,
ClassLoader classLoader,
ScriptedBuilderNameResolver scriptedBuilderResolver)
throws UnsupportedScriptTypeException,
FileNotFoundException
compositionFile - File The script file.classLoader - ClassLoader for class resolution once we resolve what
the name of the builder should be.scriptedBuilderResolver - ScriptedBuilderNameResolver the resolver of
container builder class names from file names.
UnsupportedScriptTypeException - if the extension of the file does
not match that of any known script.
FileNotFoundException - if composition file is not found
public ScriptedContainerBuilderFactory(File compositionFile,
ClassLoader classLoader)
throws IOException
compositionFile - File The script file.classLoader - ClassLoader for class resolution once we resolve what
the name of the builder should be.
IOExceptionScriptedContainerBuilderFactory(File,
ClassLoader, ScriptedBuilderNameResolver)
public ScriptedContainerBuilderFactory(File compositionFile)
throws IOException
compositionFile - File The script file.
IOExceptionScriptedContainerBuilderFactory(File,
ClassLoader, ScriptedBuilderNameResolver)public ScriptedContainerBuilderFactory(URL compositionURL)
compositionURL - The script URL.
UnsupportedScriptTypeException - if the extension of the file does
not match that of any known script.
public ScriptedContainerBuilderFactory(URL compositionURL,
ClassLoader classLoader,
ScriptedBuilderNameResolver builderClassResolver)
throws UnsupportedScriptTypeException
compositionURL - The script URL.builderClassResolver - ScriptedBuilderNameResolver the resolver for
figuring out file names to container builder class names.classLoader - ClassLoader for class resolution once we resolve what
the name of the builder should be.. the specified builder
using the specified classloader.
UnsupportedScriptTypeException - if the extension of the file does
not match that of any known script.
public ScriptedContainerBuilderFactory(URL compositionURL,
String builderClassName,
ClassLoader classLoader)
compositionURL - The script URL.builderClassName - the class name of the ContainerBuilder to
instantiateclassLoader - ClassLoader for class resolution once we resolve what
the name of the builder should be.. the specified builder
using the specified classloader.
public ScriptedContainerBuilderFactory(Reader composition,
String builderClassName)
composition - the Reader encoding the script to create the builder
withbuilderClassName - the class name of the ContainerBuilder to
instantiateScriptedContainerBuilderFactory(Reader,
String, ClassLoader)
public ScriptedContainerBuilderFactory(Reader composition,
String builderClassName,
ClassLoader classLoader)
composition - the Reader encoding the script to create the builder
withbuilderClassName - the class name of the ContainerBuilder to
instantiateclassLoader - the Classloader to use for instantiation| Method Detail |
|---|
public ScriptedContainerBuilder getContainerBuilder()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||