org.sape.carbon.services.config.classloader
Class AbstractClassloaderConfigurationDocumentFactory
java.lang.Object
|
+--org.sape.carbon.services.config.classloader.AbstractClassloaderConfigurationDocumentFactory
- All Implemented Interfaces:
- NodeFactory
- Direct Known Subclasses:
- ClassloaderConfigurationDocumentFactory, ClassloaderLinkNodeConfigurationDocumentFactory
- public abstract class AbstractClassloaderConfigurationDocumentFactory
- extends Object
- implements NodeFactory
Base class for factories that construct
ClassloaderConfigurationDocument
s.
Copyright 2003 Sapient
- Since:
- carbon 2.0
- Version:
- $Revision: 1.4 $($Author: dvoet $ / $Date: 2003/11/11 21:19:58 $)
- Author:
- Greg Hinkle, April 2003
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FORMAT_SERVICE
private static final ConfigurationFormatService FORMAT_SERVICE
AbstractClassloaderConfigurationDocumentFactory
public AbstractClassloaderConfigurationDocumentFactory()
getInstance
public Node getInstance(Node parent,
String name)
throws NodeCreationException
- Creates ClassloaderConfigurationDocument objects only as children
of ClassloaderFolders.
- Specified by:
getInstance
in interface NodeFactory
- Parameters:
parent
- the parent Folder
of the
Node
. Can be null only if the Node
is the root Node
for the ConfigurationService
name
- the name of the Node
. Cannot be null.
- Returns:
- Node the new Node
- Throws:
InvalidParameterException
- if parent is not
assignable from ClassloaderFolders
NodeCreationException
- if the LinkNode
cannot be
created.
getFileExtension
protected abstract String getFileExtension()
- Gets the extension for the node being created by the factory.
The extension is used to identify the type of node contained
within the document (ConfigurationDocument or LinkNode at this time).
- Returns:
- String the file extension starting with a '.'
getConfigurationFormatService
protected ConfigurationFormatService getConfigurationFormatService()
- Method that determines which ConfigurationFormatService will be used
within the ConfigurationDocuments of this package. The default
implementation returns a static instance of
org.sape.carbon.core.config.format.DefaultConfigurationFormatService.
Override this method to
change the ConfigurationFormatService used by the
FileConfigurationDocument.
- Returns:
- ConfigurationFormatService
Copyright 1999-2003 Sapient Corporation. All Rights Reserved.