org.apache.xbean.blueprint.context.impl
Class XBeanNamespaceHandler
java.lang.Object
org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler
- All Implemented Interfaces:
- org.apache.aries.blueprint.NamespaceHandler
public class XBeanNamespaceHandler
- extends Object
- implements org.apache.aries.blueprint.NamespaceHandler
- Version:
- $Rev: 923807 $ $Date: 2010-03-16 11:30:46 -0400 (Tue, 16 Mar 2010) $
Constructor Summary |
XBeanNamespaceHandler(String namespace,
String schemaLocation,
org.osgi.framework.Bundle bundle,
String propertiesLocation)
|
XBeanNamespaceHandler(String namespace,
String schemaLocation,
String propertiesLocation)
|
XBeanNamespaceHandler(String namespace,
URL schemaLocation,
Set<Class> managedClasses,
Map<String,Class<? extends PropertyEditor>> propertyEditors,
Properties properties)
|
Method Summary |
protected void |
addValueToMap(org.apache.aries.blueprint.mutable.MutableMapMetadata map,
org.osgi.service.blueprint.reflect.NonNullMetadata keyValue,
org.osgi.service.blueprint.reflect.Metadata value,
String dups,
org.apache.aries.blueprint.ParserContext parserContext)
|
protected Element |
cloneElement(Element element)
Creates a clone of the element and its attribute (though not its content) |
org.osgi.service.blueprint.reflect.ComponentMetadata |
decorate(Node node,
org.osgi.service.blueprint.reflect.ComponentMetadata componentMetadata,
org.apache.aries.blueprint.ParserContext parserContext)
|
protected Element |
getFirstChildElement(Element element)
|
protected String |
getLocalName(Element element)
|
Set<Class> |
getManagedClasses()
|
URL |
getSchemaLocation(String s)
|
protected org.osgi.service.blueprint.reflect.Metadata |
getValue(String value,
String propertyEditorName,
org.apache.aries.blueprint.ParserContext parserContext)
|
protected boolean |
isEmpty(String uri)
|
org.osgi.service.blueprint.reflect.Metadata |
parse(Element element,
org.apache.aries.blueprint.ParserContext parserContext)
|
protected org.osgi.service.blueprint.reflect.Metadata |
parseCustomMapElement(org.apache.aries.blueprint.mutable.MutableBeanMetadata beanMetadata,
Element element,
String name,
org.apache.aries.blueprint.ParserContext parserContext)
|
static org.osgi.service.blueprint.reflect.BeanProperty |
propertyByName(String name,
org.osgi.service.blueprint.reflect.BeanMetadata meta)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BLUEPRINT_NAMESPACE
public static final String BLUEPRINT_NAMESPACE
- See Also:
- Constant Field Values
XBeanNamespaceHandler
public XBeanNamespaceHandler(String namespace,
URL schemaLocation,
Set<Class> managedClasses,
Map<String,Class<? extends PropertyEditor>> propertyEditors,
Properties properties)
XBeanNamespaceHandler
public XBeanNamespaceHandler(String namespace,
String schemaLocation,
org.osgi.framework.Bundle bundle,
String propertiesLocation)
throws IOException,
ClassNotFoundException,
InstantiationException,
IllegalAccessException
- Throws:
IOException
ClassNotFoundException
InstantiationException
IllegalAccessException
XBeanNamespaceHandler
public XBeanNamespaceHandler(String namespace,
String schemaLocation,
String propertiesLocation)
throws IOException,
ClassNotFoundException,
InstantiationException,
IllegalAccessException
- Throws:
IOException
ClassNotFoundException
InstantiationException
IllegalAccessException
getSchemaLocation
public URL getSchemaLocation(String s)
- 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
parse
public org.osgi.service.blueprint.reflect.Metadata parse(Element element,
org.apache.aries.blueprint.ParserContext parserContext)
- Specified by:
parse
in interface org.apache.aries.blueprint.NamespaceHandler
getLocalName
protected String getLocalName(Element element)
parseCustomMapElement
protected org.osgi.service.blueprint.reflect.Metadata parseCustomMapElement(org.apache.aries.blueprint.mutable.MutableBeanMetadata beanMetadata,
Element element,
String name,
org.apache.aries.blueprint.ParserContext parserContext)
cloneElement
protected Element cloneElement(Element element)
- Creates a clone of the element and its attribute (though not its content)
addValueToMap
protected void addValueToMap(org.apache.aries.blueprint.mutable.MutableMapMetadata map,
org.osgi.service.blueprint.reflect.NonNullMetadata keyValue,
org.osgi.service.blueprint.reflect.Metadata value,
String dups,
org.apache.aries.blueprint.ParserContext parserContext)
isEmpty
protected boolean isEmpty(String uri)
getValue
protected org.osgi.service.blueprint.reflect.Metadata getValue(String value,
String propertyEditorName,
org.apache.aries.blueprint.ParserContext parserContext)
getFirstChildElement
protected Element getFirstChildElement(Element element)
propertyByName
public static org.osgi.service.blueprint.reflect.BeanProperty propertyByName(String name,
org.osgi.service.blueprint.reflect.BeanMetadata meta)
decorate
public org.osgi.service.blueprint.reflect.ComponentMetadata decorate(Node node,
org.osgi.service.blueprint.reflect.ComponentMetadata componentMetadata,
org.apache.aries.blueprint.ParserContext parserContext)
- Specified by:
decorate
in interface org.apache.aries.blueprint.NamespaceHandler
Copyright © 2005-2011. All Rights Reserved.