public class JamServiceFactoryImpl extends JamServiceFactory
Default implementation of the JamServiceFactory singleton. Custom JAM providers need to extend this class and override whatever methods they need to.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
USE_NEW_PARSER
Service context property which turns on the javadoc killer.
|
| Constructor and Description |
|---|
JamServiceFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected JamClassBuilder |
createBuilder(JamServiceContext ctx)
Creates the JamClassBuilder for the given context.
|
protected JamClassBuilder |
createClassfileBuilder(JamServiceContext jp)
Creates the class-based classbuilder for the given context.
|
protected JamClassLoader |
createClassLoader(JamServiceContext ctx)
Creates the main classloader to be used given the input ctx.
|
JamClassLoader |
createJamClassLoader(java.lang.ClassLoader cl)
Returns a new JamClassLoader which simply wraps the given
classloader.
|
JamService |
createService(JamServiceParams jsps)
Create a new JamService from the given parameters.
|
JamServiceParams |
createServiceParams()
Create a new JamServiceParams instance.
|
protected JamClassBuilder |
createSourceBuilder(JamServiceContext ctx)
Creates the source-based classbuilder for the given context.
|
JamClassLoader |
createSystemJamClassLoader()
Returns a new JamClassLoader which simply wraps the system
classloader.
|
protected java.lang.String[] |
getSpecifiedClasses(JamServiceContext params)
Returns the set of classes to be included in a JamService to be
created by the given params.
|
getInstance, mainpublic static final java.lang.String USE_NEW_PARSER
Service context property which turns on the javadoc killer. This will be removed when javadoc has been phased out.
public JamServiceParams createServiceParams()
JamServiceFactorycreateServiceParams in class JamServiceFactorypublic JamService createService(JamServiceParams jsps) throws java.io.IOException
JamServiceFactorycreateService in class JamServiceFactoryjava.io.IOException - if an IO error occurred while creating the servicepublic JamClassLoader createSystemJamClassLoader()
JamServiceFactoryReturns a new JamClassLoader which simply wraps the system classloader.
createSystemJamClassLoader in class JamServiceFactorypublic JamClassLoader createJamClassLoader(java.lang.ClassLoader cl)
JamServiceFactoryReturns a new JamClassLoader which simply wraps the given classloader.
createJamClassLoader in class JamServiceFactoryprotected java.lang.String[] getSpecifiedClasses(JamServiceContext params) throws java.io.IOException
Returns the set of classes to be included in a JamService to be created by the given params. You should not override this unless you really know what you're doing.
java.io.IOExceptionprotected JamClassLoader createClassLoader(JamServiceContext ctx) throws java.io.IOException
Creates the main classloader to be used given the input ctx. This is usually a composite of the source classloader and a classfile classloader. Subclasses may override to change the behavior.
java.io.IOExceptionprotected JamClassBuilder createBuilder(JamServiceContext ctx) throws java.io.IOException
Creates the JamClassBuilder for the given context. This will be a composite that may include custom source and class-based classbuilders. It usually includes the system classbuilders and always contains the builtin classbuilder.
java.io.IOExceptionprotected JamClassBuilder createSourceBuilder(JamServiceContext ctx) throws java.io.IOException
Creates the source-based classbuilder for the given context. If no source files or paths are specified in the context, just returns null.
java.io.IOExceptionprotected JamClassBuilder createClassfileBuilder(JamServiceContext jp) throws java.io.IOException
Creates the class-based classbuilder for the given context. If no class files or classloaders are specified in the params, just returns null.
java.io.IOException