|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jam.JamServiceFactory
public abstract class JamServiceFactory
Start here! This is the normal entry point into the JAM subsystem. JamServiceFactory is a singleton factory which can create a new JamServiceParams and JServices. Here is a code sample that demonstrates how to use JamServiceFactory.
// Get the factory singleton JamServiceFactory factory = JamServiceFactory.getInstance(); // Use the factory to create an object that we can use to specify what // java types we want to view JamServiceParams params = factory.createServiceParams(); // Include the classes under mypackage params.includeSources(new File("c:/myproject/src","mypackage/*.java")); // Create a JamService, which will contain JClasses for the classes found in mypackage JamService service = factory.createServiceRoot(params);
Constructor Summary | |
---|---|
protected |
JamServiceFactory()
|
Method Summary | |
---|---|
abstract JamClassLoader |
createJamClassLoader(java.lang.ClassLoader cl)
Returns a new JamClassLoader which simply wraps the given classloader. |
abstract JamService |
createService(JamServiceParams params)
Create a new JamService from the given parameters. |
abstract JamServiceParams |
createServiceParams()
Create a new JamServiceParams instance. |
abstract JamClassLoader |
createSystemJamClassLoader()
Returns a new JamClassLoader which simply wraps the system classloader. |
static JamServiceFactory |
getInstance()
Return the default factory singleton for this VM. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected JamServiceFactory()
Method Detail |
---|
public static JamServiceFactory getInstance()
public abstract JamServiceParams createServiceParams()
public abstract JamService createService(JamServiceParams params) throws java.io.IOException
java.io.IOException
- if an IO error occurred while creating the service
java.lang.IllegalArgumentException
- if the params is null or not
an instance returned by createServiceParams().public abstract JamClassLoader createSystemJamClassLoader()
Returns a new JamClassLoader which simply wraps the system classloader.
public abstract JamClassLoader createJamClassLoader(java.lang.ClassLoader cl)
Returns a new JamClassLoader which simply wraps the given classloader.
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |