org.apache.aries.jmx.blueprint.impl
Class BlueprintMetadata

java.lang.Object
  extended by org.apache.aries.jmx.blueprint.impl.BlueprintMetadata
All Implemented Interfaces:
BlueprintMetadataMBean

public class BlueprintMetadata
extends Object
implements BlueprintMetadataMBean


Field Summary
 
Fields inherited from interface org.apache.aries.jmx.blueprint.BlueprintMetadataMBean
ACTIVATION, ACTIVATION_ITEM, ARGUMENTS, ARGUMENTS_ITEM, AUTO_EXPORT, AUTO_EXPORT_ITEM, AVAILABILITY, AVAILABILITY_ITEM, BEAN_ARGUMENT, BEAN_ARGUMENT_TYPE, BEAN_METADATA, BEAN_METADATA_TYPE, BEAN_PROPERTY, BEAN_PROPERTY_TYPE, BIND_METHOD, BIND_METHOD_ITEM, CLASS_NAME, CLASS_NAME_ITEM, COLLECTION_CLASS, COLLECTION_CLASS_ITEM, COLLECTION_METADATA, COLLECTION_METADATA_TYPE, COMPONENT_ID, COMPONENT_ID_ITEM, COMPONENT_METADATA, COMPONENT_METADATA_TYPE, COMPONENT_NAME, COMPONENT_NAME_ITEM, DEPENDS_ON, DEPENDS_ON_ITEM, DESTROY_METHOD, DESTROY_METHOD_ITEM, ENTRIES, ENTRIES_ITEM, FACTORY_COMPONENT, FACTORY_COMPONENT_ITEM, FACTORY_METHOD, FACTORY_METHOD_ITEM, FILTER, FILTER_ITEM, ID, ID_ITEM, ID_REF_METADATA, ID_REF_METADATA_TYPE, INDEX, INDEX_ITEM, INIT_METHOD, INIT_METHOD_ITEM, INTERFACE, INTERFACE_ITEM, INTERFACES, INTERFACES_ITEM, KEY, KEY_ITEM, KEY_TYPE, KEY_TYPE_ITEM, LISTENER_COMPONENT, LISTENER_COMPONENT_ITEM, MAP_ENTRY, MAP_ENTRY_TYPE, MAP_METADATA, MAP_METADATA_TYPE, MEMBER_TYPE, MEMBER_TYPE_ITEM, NAME, NAME_ITEM, NULL_METADATA, NULL_METADATA_TYPE, OBJECTNAME, PLACEHOLDER, PLACEHOLDER_ITEM, PROPERTIES, PROPERTIES_ITEM, PROPS_METADATA, PROPS_METADATA_TYPE, RANKING, RANKING_ITEM, REF_METADATA, REF_METADATA_TYPE, REFERENCE_LIST_METADATA, REFERENCE_LIST_METADATA_TYPE, REFERENCE_LISTENER, REFERENCE_LISTENER_TYPE, REFERENCE_LISTENERS, REFERENCE_LISTENERS_ITEM, REFERENCE_METADATA, REFERENCE_METADATA_TYPE, REGISTRATION_LISTENER, REGISTRATION_LISTENER_TYPE, REGISTRATION_LISTENERS, REGISTRATION_LISTENERS_ITEM, REGISTRATION_METHOD, REGISTRATION_METHOD_ITEM, SCOPE, SCOPE_ITEM, SERVICE_COMPONENT, SERVICE_COMPONENT_ITEM, SERVICE_METADATA, SERVICE_METADATA_TYPE, SERVICE_PROPERTIES, SERVICE_PROPERTIES_ITEM, SERVICE_REFERENCE_METADATA, SERVICE_REFERENCE_METADATA_TYPE, STRING_VALUE, STRING_VALUE_ITEM, TIMEOUT, TIMEOUT_ITEM, TYPE, TYPE_ITEM, UNBIND_METHOD, UNBIND_METHOD_ITEM, UNREGISTRATION_METHOD, UNREGISTRATION_METHOD_ITEM, VALUE, VALUE_ITEM, VALUE_METADATA, VALUE_METADATA_TYPE, VALUE_TYPE, VALUE_TYPE_ITEM, VALUES, VALUES_ITEM
 
Constructor Summary
BlueprintMetadata(org.osgi.framework.BundleContext bundleContext)
           
 
Method Summary
 long getBlueprintContainerServiceId(long bundleId)
          Returns the blueprint container's service id if the bundle specified by the bundle id is a blueprint bundle.
 long[] getBlueprintContainerServiceIds()
          Returns all the blueprint containers' service IDs, which successfully created from blueprint bundles.
 String[] getComponentIds(long containerServiceId)
          Returns the list of component id.
 String[] getComponentIdsByType(long containerServiceId, String type)
          Returns all component ids of the specified component type
 CompositeData getComponentMetadata(long containerServiceId, String componentId)
          Returns the ComponentMetadata according to the its component id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlueprintMetadata

public BlueprintMetadata(org.osgi.framework.BundleContext bundleContext)
Method Detail

getBlueprintContainerServiceId

public long getBlueprintContainerServiceId(long bundleId)
                                    throws IOException
Description copied from interface: BlueprintMetadataMBean
Returns the blueprint container's service id if the bundle specified by the bundle id is a blueprint bundle.

Specified by:
getBlueprintContainerServiceId in interface BlueprintMetadataMBean
Parameters:
bundleId - The bundle id of a blueprint bundle
Returns:
the blueprint container's service id, or null if the blueprint bundle initialed failed.
Throws:
IOException - if the operation fails

getBlueprintContainerServiceIds

public long[] getBlueprintContainerServiceIds()
                                       throws IOException
Description copied from interface: BlueprintMetadataMBean
Returns all the blueprint containers' service IDs, which successfully created from blueprint bundles.

Specified by:
getBlueprintContainerServiceIds in interface BlueprintMetadataMBean
Returns:
the list of all the service IDs of the blueprint containers created by current extender
Throws:
IOException - if the operation fails

getComponentIds

public String[] getComponentIds(long containerServiceId)
Description copied from interface: BlueprintMetadataMBean
Returns the list of component id.

Specified by:
getComponentIds in interface BlueprintMetadataMBean
Parameters:
containerServiceId - The blueprint container service id
Returns:
the array of component id

getComponentIdsByType

public String[] getComponentIdsByType(long containerServiceId,
                                      String type)
Description copied from interface: BlueprintMetadataMBean
Returns all component ids of the specified component type

Specified by:
getComponentIdsByType in interface BlueprintMetadataMBean
Parameters:
containerServiceId - The blueprint container service id
type - The string used to specify the type of component
Returns:
the array of component id

getComponentMetadata

public CompositeData getComponentMetadata(long containerServiceId,
                                          String componentId)
Description copied from interface: BlueprintMetadataMBean
Returns the ComponentMetadata according to the its component id. The returned Composite Data's type is actually one of BlueprintMetadataMBean.BEAN_METADATA_TYPE, BlueprintMetadataMBean.SERVICE_METADATA_TYPE, BlueprintMetadataMBean.REFERENCE_METADATA_TYPE, REFERENCE_LIST_METADATA_TYPE.

Specified by:
getComponentMetadata in interface BlueprintMetadataMBean
Parameters:
containerServiceId - The blueprint container service id
componentId - The component id
Returns:
the ComponentMetadata


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.