org.apache.xbean.blueprint.cm
Class CmNamespaceHandler

java.lang.Object
  extended by org.apache.xbean.blueprint.cm.CmNamespaceHandler
All Implemented Interfaces:
org.apache.aries.blueprint.NamespaceHandler

public class CmNamespaceHandler
extends Object
implements org.apache.aries.blueprint.NamespaceHandler

Modified from aries CmNamespaceHandler

Version:
$Rev: 907189 $ $Date: 2010-02-06 03:01:43 -0500 (Sat, 06 Feb 2010) $

Field Summary
static String AUTO_EXPORT_ALL
           
static String AUTO_EXPORT_ATTRIBUTE
           
static String AUTO_EXPORT_CLASS_HIERARCHY
           
static String AUTO_EXPORT_DEFAULT
           
static String AUTO_EXPORT_DISABLED
           
static String AUTO_EXPORT_INTERFACES
           
static String BLUEPRINT_NAMESPACE
           
static String CM_PROPERTIES_ELEMENT
           
static String DEFAULT_PROPERTIES_ELEMENT
           
static String DEFAULTS_REF_ATTRIBUTE
           
static String FACTORY_PID_ATTRIBUTE
           
static String ID_ATTRIBUTE
           
static String INTERFACE_ATTRIBUTE
           
static String INTERFACES_ELEMENT
           
static String MANAGED_COMPONENT_ELEMENT
           
static String PERSISTENT_ID_ATTRIBUTE
           
static String PLACEHOLDER_PREFIX_ATTRIBUTE
           
static String PLACEHOLDER_SUFFIX_ATTRIBUTE
           
static String PROPERTY_ELEMENT
           
static String PROPERTY_PLACEHOLDER_ELEMENT
           
static String RANKING_ATTRIBUTE
           
static String RANKING_DEFAULT
           
static String UPDATE_ATTRIBUTE
           
static String UPDATE_METHOD_ATTRIBUTE
           
static String UPDATE_STRATEGY_ATTRIBUTE
           
static String VALUE_ELEMENT
           
static String XBEAN_CM_NAMESPACE
           
 
Constructor Summary
CmNamespaceHandler()
           
 
Method Summary
 org.osgi.service.blueprint.reflect.ComponentMetadata decorate(Node node, org.osgi.service.blueprint.reflect.ComponentMetadata component, org.apache.aries.blueprint.ParserContext context)
           
 void generateIdIfNeeded(org.apache.aries.blueprint.ParserContext context, org.apache.aries.blueprint.mutable.MutableComponentMetadata metadata)
           
 String getId(org.apache.aries.blueprint.ParserContext context, Element element)
           
 Set<Class> getManagedClasses()
           
 URL getSchemaLocation(String namespace)
           
static boolean isBlueprintNamespace(String ns)
           
 org.osgi.service.blueprint.reflect.Metadata parse(Element element, org.apache.aries.blueprint.ParserContext context)
           
 List<String> parseInterfaceNames(Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLUEPRINT_NAMESPACE

public static final String BLUEPRINT_NAMESPACE
See Also:
Constant Field Values

XBEAN_CM_NAMESPACE

public static final String XBEAN_CM_NAMESPACE
See Also:
Constant Field Values

PROPERTY_PLACEHOLDER_ELEMENT

public static final String PROPERTY_PLACEHOLDER_ELEMENT
See Also:
Constant Field Values

CM_PROPERTIES_ELEMENT

public static final String CM_PROPERTIES_ELEMENT
See Also:
Constant Field Values

DEFAULT_PROPERTIES_ELEMENT

public static final String DEFAULT_PROPERTIES_ELEMENT
See Also:
Constant Field Values

PROPERTY_ELEMENT

public static final String PROPERTY_ELEMENT
See Also:
Constant Field Values

INTERFACES_ELEMENT

public static final String INTERFACES_ELEMENT
See Also:
Constant Field Values

VALUE_ELEMENT

public static final String VALUE_ELEMENT
See Also:
Constant Field Values

MANAGED_COMPONENT_ELEMENT

public static final String MANAGED_COMPONENT_ELEMENT
See Also:
Constant Field Values

ID_ATTRIBUTE

public static final String ID_ATTRIBUTE
See Also:
Constant Field Values

PERSISTENT_ID_ATTRIBUTE

public static final String PERSISTENT_ID_ATTRIBUTE
See Also:
Constant Field Values

PLACEHOLDER_PREFIX_ATTRIBUTE

public static final String PLACEHOLDER_PREFIX_ATTRIBUTE
See Also:
Constant Field Values

PLACEHOLDER_SUFFIX_ATTRIBUTE

public static final String PLACEHOLDER_SUFFIX_ATTRIBUTE
See Also:
Constant Field Values

DEFAULTS_REF_ATTRIBUTE

public static final String DEFAULTS_REF_ATTRIBUTE
See Also:
Constant Field Values

UPDATE_STRATEGY_ATTRIBUTE

public static final String UPDATE_STRATEGY_ATTRIBUTE
See Also:
Constant Field Values

UPDATE_METHOD_ATTRIBUTE

public static final String UPDATE_METHOD_ATTRIBUTE
See Also:
Constant Field Values

FACTORY_PID_ATTRIBUTE

public static final String FACTORY_PID_ATTRIBUTE
See Also:
Constant Field Values

AUTO_EXPORT_ATTRIBUTE

public static final String AUTO_EXPORT_ATTRIBUTE
See Also:
Constant Field Values

RANKING_ATTRIBUTE

public static final String RANKING_ATTRIBUTE
See Also:
Constant Field Values

INTERFACE_ATTRIBUTE

public static final String INTERFACE_ATTRIBUTE
See Also:
Constant Field Values

UPDATE_ATTRIBUTE

public static final String UPDATE_ATTRIBUTE
See Also:
Constant Field Values

AUTO_EXPORT_DISABLED

public static final String AUTO_EXPORT_DISABLED
See Also:
Constant Field Values

AUTO_EXPORT_INTERFACES

public static final String AUTO_EXPORT_INTERFACES
See Also:
Constant Field Values

AUTO_EXPORT_CLASS_HIERARCHY

public static final String AUTO_EXPORT_CLASS_HIERARCHY
See Also:
Constant Field Values

AUTO_EXPORT_ALL

public static final String AUTO_EXPORT_ALL
See Also:
Constant Field Values

AUTO_EXPORT_DEFAULT

public static final String AUTO_EXPORT_DEFAULT
See Also:
Constant Field Values

RANKING_DEFAULT

public static final String RANKING_DEFAULT
See Also:
Constant Field Values
Constructor Detail

CmNamespaceHandler

public CmNamespaceHandler()
Method Detail

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

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

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

isBlueprintNamespace

public static boolean isBlueprintNamespace(String ns)

getId

public String getId(org.apache.aries.blueprint.ParserContext context,
                    Element element)

generateIdIfNeeded

public void generateIdIfNeeded(org.apache.aries.blueprint.ParserContext context,
                               org.apache.aries.blueprint.mutable.MutableComponentMetadata metadata)

parseInterfaceNames

public List<String> parseInterfaceNames(Element element)


Copyright © 2005-2013. All Rights Reserved.