org.apache.aries.blueprint.testbundlea
Class NSHandlerOne
java.lang.Object
org.apache.aries.blueprint.testbundlea.NSHandlerOne
- All Implemented Interfaces:
- NamespaceHandler
public class NSHandlerOne
- extends Object
- implements NamespaceHandler
A simple example namespace handler, that understands an element, and 2 attributes
When the element is encountered in a top level blueprint element, the handler will add a
passthroughmetadata with it's id as the contained attribone.
The passthroughmetadata will return a string with the value from the contained
attrib two.
If the element is encountered during processing of a bean, it will add a property to the
bean with the name of the attribone value, and a value of the passthroughmetadata with id
matching attribtwo
This handler is designed to exercise aspects of the NamespaceHandler capability set.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NSURI
public static String NSURI
NSHandlerOne
public NSHandlerOne()
decorate
public ComponentMetadata decorate(Node node,
ComponentMetadata component,
ParserContext context)
- Specified by:
decorate in interface NamespaceHandler
parse
public Metadata parse(Element element,
ParserContext context)
- Specified by:
parse in interface NamespaceHandler
getSchemaLocation
public URL getSchemaLocation(String namespace)
- Specified by:
getSchemaLocation in interface NamespaceHandler
getManagedClasses
public Set<Class> getManagedClasses()
- Specified by:
getManagedClasses in interface NamespaceHandler
Copyright © 2009-2010 The Apache Software Foundation. All Rights Reserved.