|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jam.JamServiceFactory
org.codehaus.jam.provider.JamServiceFactoryImpl
public class JamServiceFactoryImpl
Default implementation of the JamServiceFactory singleton. Custom JAM providers need to extend this class and override whatever methods they need to.
Field Summary | |
---|---|
static java.lang.String |
USE_NEW_PARSER
Service context property which turns on the javadoc killer. |
Constructor Summary | |
---|---|
JamServiceFactoryImpl()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.codehaus.jam.JamServiceFactory |
---|
getInstance, main |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public 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.
Constructor Detail |
---|
public JamServiceFactoryImpl()
Method Detail |
---|
public JamServiceParams createServiceParams()
JamServiceFactory
createServiceParams
in class JamServiceFactory
public JamService createService(JamServiceParams jsps) throws java.io.IOException
JamServiceFactory
createService
in class JamServiceFactory
java.io.IOException
- if an IO error occurred while creating the servicepublic JamClassLoader createSystemJamClassLoader()
JamServiceFactory
Returns a new JamClassLoader which simply wraps the system classloader.
createSystemJamClassLoader
in class JamServiceFactory
public JamClassLoader createJamClassLoader(java.lang.ClassLoader cl)
JamServiceFactory
Returns a new JamClassLoader which simply wraps the given classloader.
createJamClassLoader
in class JamServiceFactory
protected 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.IOException
protected 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.IOException
protected 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.IOException
protected 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.IOException
protected 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |