org.apache.aries.blueprint.compendium.cm
Class CmNamespaceHandler
java.lang.Object
org.apache.aries.blueprint.compendium.cm.CmNamespaceHandler
- All Implemented Interfaces:
- org.apache.aries.blueprint.NamespaceHandler
public class CmNamespaceHandler
- extends Object
- implements org.apache.aries.blueprint.NamespaceHandler
Namespace handler for the Config Admin service.
This handler will parse the various elements defined and populate / modify the registry
accordingly.
- Version:
- $Rev: 1364914 $, $Date: 2012-07-24 07:35:34 +0100 (Tue, 24 Jul 2012) $
- See Also:
CmManagedProperties,
CmManagedServiceFactory,
CmProperties,
CmPropertyPlaceholder
| 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
BLUEPRINT_CM_NAMESPACE_1_0
public static final String BLUEPRINT_CM_NAMESPACE_1_0
- See Also:
- Constant Field Values
BLUEPRINT_CM_NAMESPACE_1_1
public static final String BLUEPRINT_CM_NAMESPACE_1_1
- See Also:
- Constant Field Values
BLUEPRINT_CM_NAMESPACE_1_2
public static final String BLUEPRINT_CM_NAMESPACE_1_2
- See Also:
- Constant Field Values
BLUEPRINT_EXT_NAMESPACE_V1_0
public static final String BLUEPRINT_EXT_NAMESPACE_V1_0
- See Also:
- Constant Field Values
BLUEPRINT_EXT_NAMESPACE_V1_1
public static final String BLUEPRINT_EXT_NAMESPACE_V1_1
- See Also:
- Constant Field Values
BLUEPRINT_EXT_NAMESPACE_V1_2
public static final String BLUEPRINT_EXT_NAMESPACE_V1_2
- See Also:
- Constant Field Values
PROPERTY_PLACEHOLDER_ELEMENT
public static final String PROPERTY_PLACEHOLDER_ELEMENT
- See Also:
- Constant Field Values
MANAGED_PROPERTIES_ELEMENT
public static final String MANAGED_PROPERTIES_ELEMENT
- See Also:
- Constant Field Values
MANAGED_SERVICE_FACTORY_ELEMENT
public static final String MANAGED_SERVICE_FACTORY_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
LOCATION_ELEMENT
public static final String LOCATION_ELEMENT
- See Also:
- Constant Field Values
SERVICE_PROPERTIES_ELEMENT
public static final String SERVICE_PROPERTIES_ELEMENT
- See Also:
- Constant Field Values
REGISTRATION_LISTENER_ELEMENT
public static final String REGISTRATION_LISTENER_ELEMENT
- See Also:
- Constant Field Values
ID_ATTRIBUTE
public static final String ID_ATTRIBUTE
- See Also:
- Constant Field Values
SYSTEM_PROPERTIES_NEVER
public static final String SYSTEM_PROPERTIES_NEVER
- 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
SYSTEM_PROPERTIES_ATTRIBUTE
public static final String SYSTEM_PROPERTIES_ATTRIBUTE
- See Also:
- Constant Field Values
IGNORE_MISSING_LOCATIONS_ATTRIBUTE
public static final String IGNORE_MISSING_LOCATIONS_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
CmNamespaceHandler
public CmNamespaceHandler()
getIdCounter
public int getIdCounter()
setIdCounter
public void setIdCounter(int idCounter)
getConfigAdmin
public static org.osgi.service.cm.ConfigurationAdmin getConfigAdmin()
setConfigAdmin
public void setConfigAdmin(org.osgi.service.cm.ConfigurationAdmin configAdmin)
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)
isCmNamespace
public static boolean isCmNamespace(String uri)
isExtNamespace
public static boolean isExtNamespace(String uri)
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 © 2009-2012 The Apache Software Foundation. All Rights Reserved.