public abstract class JamServiceFactory extends Object
// 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);
| Modifier and Type | Method and Description |
|---|---|
abstract JamClassLoader |
createJamClassLoader(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(String[] args) |
public static JamServiceFactory getInstance()
public abstract JamServiceParams createServiceParams()
public abstract JamService createService(JamServiceParams params) throws IOException
IOException - if an IO error occurred while creating the serviceIllegalArgumentException - 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(ClassLoader cl)
Returns a new JamClassLoader which simply wraps the given classloader.
public static void main(String[] args)
Copyright © 2010 - 2020 Adobe. All Rights Reserved