|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.storage.IlpDeploymentParser
public class IlpDeploymentParser
This class allows you to load a context from a deployment descriptor in XML.
The deployment descriptors which can be parsed have the following syntax:
When the deployment descriptor is being parsed, its contents will be automatically
validated against the defined XML schema (data/ilog/cpl/schema/deploy.xsd).
If you do not want to perform this validation, use method parse(URL,IlpDefaultContext,boolean).
Note 1: The type converter class must implement the IlpTypeConverter
and contain either a default constructor or a constructor that takes a single
IlpContext as parameter.
Note 2: The class loader class must implement the IlpClassLoaderService
and contain either a default constructor or a constructor that takes a single
IlpContext as parameter.
Note 3: There is no particular order for the top-level elements. For example, you can put the class manager before the locale.
| Nested Class Summary | |
|---|---|
static interface |
IlpDeploymentParser.IlpCustomHandler
Interface for handlers of custom elements. |
| Constructor Summary | |
|---|---|
IlpDeploymentParser(File deploymentFile)
Constructor |
|
IlpDeploymentParser(URL deploymentURL)
Constructor |
|
| Method Summary | |
|---|---|
void |
parse(URL defaultDocumentBase,
IlpDefaultContext context)
Parses the deployment descriptor and creates a corresponding service context. |
void |
parse(URL defaultDocumentBase,
IlpDefaultContext context,
boolean validate)
Parses the deployment descriptor and applies the contents of the deployment descriptor to the given context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlpDeploymentParser(File deploymentFile)
deploymentFile - The deployment descriptor file to be loaded. Must be
non null.public IlpDeploymentParser(URL deploymentURL)
deploymentURL - The deployment descriptor file to be loaded. Must be
non null.| Method Detail |
|---|
public void parse(URL defaultDocumentBase,
IlpDefaultContext context)
throws IOException,
IlpDeploymentParsingException
The deployment descriptor will be validated against the XML schema
defined in data/ilog/cpl/schema/deploy.xsd.
defaultDocumentBase - The URL of the default document base.context - The service context filled in by reading the deployment descriptor.
IlpDeploymentParsingException
IOException
public void parse(URL defaultDocumentBase,
IlpDefaultContext context,
boolean validate)
throws IOException,
IlpDeploymentParsingException
defaultDocumentBase - Document basecontext - Context that will be modifiedvalidate - Validates or not the deployment descriptor file
IlpDeploymentParsingException
IOException
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||