|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.meta.info.builder.XMLServiceCreator
Utility class the handles the internalization of an XML description
of a service into a Service
instance.
Constructor Summary | |
XMLServiceCreator()
|
Method Summary | |
Properties |
buildAttributes(Configuration config)
Build up a list of attributes from specific config tree. |
protected EntryDescriptor[] |
buildEntries(Configuration[] entrySet)
A utility method to build an array of EntryDescriptor
objects from specified configuration. |
protected EntryDescriptor |
buildEntry(Configuration config)
Create a EntryDescriptor from configuration. |
protected Version |
buildVersion(String version)
A utility method to parse a Version object from specified string. |
Service |
createService(String key,
InputStream input)
Create a Service from stream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLServiceCreator()
Method Detail |
public Service createService(String key, InputStream input) throws Exception
Service
from stream
createService
in interface ServiceCreator
key
- the name of the service typeinput
- the input stream that the resource is loaded from
Service
Exception
- if an error occurspublic Properties buildAttributes(Configuration config) throws BuildException
config
- the attributes config
ConfigurationException
- if an error occurs
BuildException
protected EntryDescriptor[] buildEntries(Configuration[] entrySet) throws BuildException
EntryDescriptor
objects from specified configuration.
entrySet
- the set of entrys to build
EntryDescriptor
s
ConfigurationException
- if an error occurs
BuildException
protected EntryDescriptor buildEntry(Configuration config) throws BuildException
EntryDescriptor
from configuration.
config
- the configuration
EntryDescriptor
ConfigurationException
- if an error occurs
BuildException
protected Version buildVersion(String version) throws BuildException
version
- the version string
BuildException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |