org.spicefactory.cinnamon.config.shared
Class AbstractServiceConfigParser
java.lang.Object
org.spicefactory.cinnamon.config.shared.AbstractServiceConfigParser
public abstract class AbstractServiceConfigParser
- extends Object
Abstract base class containing parsing logic for service configuration.
Will be used in the default XML configuration parser and the Spring NamespaceHandler.
- Author:
- Jens Halm
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractServiceConfigParser
public AbstractServiceConfigParser()
process
public void process(ElementWrapper element)
- Processes the given XML element representing a single service configuration.
- Parameters:
element - the wrapper for the XML element
addServiceConfig
protected abstract void addServiceConfig(String name,
String scope,
Class<?> serviceInterface,
Class<?> serviceImplementation,
String factoryRef,
List<OperationConfig> operations,
boolean processAnnotations)
- Adds a service to the configuration. Subclasses implementing this method
should create a ServiceConfig instance and add it to the CinnamonConfig instance under construction.
The exact mechanism depends on the configuration method in use (i.e. XML vs. Spring).
- Parameters:
name - the name of the servicescope - the (optional) scopeserviceInterface - the service interfaceserviceImplementation - the (optional) service implementationfactoryRef - the name of the ServiceFactory to use for this serviceoperations - a list of operations that can be invoked by clientsprocessAnnotations - whether annotations should be processed on the service interface