org.apache.aries.blueprint.testbundlea
Class NSHandlerOne
java.lang.Object
org.apache.aries.blueprint.testbundlea.NSHandlerOne
- All Implemented Interfaces:
- org.apache.aries.blueprint.NamespaceHandler
public class NSHandlerOne
- extends Object
- implements org.apache.aries.blueprint.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.
|
Method Summary |
org.osgi.service.blueprint.reflect.ComponentMetadata |
decorate(Node node,
org.osgi.service.blueprint.reflect.ComponentMetadata component,
org.apache.aries.blueprint.ParserContext context)
|
Set<Class> |
getManagedClasses()
|
URL |
getSchemaLocation(String namespace)
|
org.osgi.service.blueprint.reflect.Metadata |
parse(Element element,
org.apache.aries.blueprint.ParserContext context)
|
| 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 org.osgi.service.blueprint.reflect.ComponentMetadata decorate(Node node,
org.osgi.service.blueprint.reflect.ComponentMetadata component,
org.apache.aries.blueprint.ParserContext context)
- Specified by:
decorate in interface org.apache.aries.blueprint.NamespaceHandler
parse
public org.osgi.service.blueprint.reflect.Metadata parse(Element element,
org.apache.aries.blueprint.ParserContext context)
- Specified by:
parse in interface org.apache.aries.blueprint.NamespaceHandler
getSchemaLocation
public URL getSchemaLocation(String namespace)
- Specified by:
getSchemaLocation in interface org.apache.aries.blueprint.NamespaceHandler
getManagedClasses
public Set<Class> getManagedClasses()
- Specified by:
getManagedClasses in interface org.apache.aries.blueprint.NamespaceHandler
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.