|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jomc.modlet.ModelContextFactory
public abstract class ModelContextFactory
Interface to creating model contexts.
Constructor Summary | |
---|---|
protected |
ModelContextFactory()
Creates a new ModelContextFactory instance. |
Method Summary | |
---|---|
static ModelContextFactory |
newInstance()
Creates a new ModelContextFactory instance. |
static ModelContextFactory |
newInstance(String factoryClassName)
Creates a new ModelContextFactory instance. |
abstract ModelContext |
newModelContext()
Creates a new ModelContext instance. |
abstract ModelContext |
newModelContext(ClassLoader classLoader)
Creates a new ModelContext instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ModelContextFactory()
ModelContextFactory
instance.
Method Detail |
---|
public static ModelContextFactory newInstance() throws ModelContextFactoryError
ModelContextFactory
instance.
The name of the class providing the ModelContextFactory
implementation loaded by this method is
controlled by system property org.jomc.modlet.ModelContextFactory
. If that property is not set, this
methods returns a new default instance.
ModelContextFactory
instance.
ModelContextFactoryError
- if creating a new instance fails.public static ModelContextFactory newInstance(String factoryClassName) throws ModelContextFactoryError
ModelContextFactory
instance.
factoryClassName
- The name of the ModelContextFactory
class to create an instance of.
ModelContextFactory
instance.
NullPointerException
- if factoryClassName
is null
.
ModelContextFactoryError
- if creating a new instance fails.public abstract ModelContext newModelContext()
ModelContext
instance.
ModelContext
instance.public abstract ModelContext newModelContext(ClassLoader classLoader)
ModelContext
instance.
classLoader
- The class loader to create a new instance with or null
, to create a new instance
using the bootstrap class loader.
ModelContext
instance for classLoader
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005-2012 The JOMC Project. All Rights Reserved. |