Package org.osgi.service.cdi.runtime
Interface CDIComponentRuntime
-
@ProviderType public interface CDIComponentRuntimeTheCDIComponentRuntimeservice represents the actor that manages the CDI containers and their life cycle. TheCDIComponentRuntimeservice allows introspection of the managed CDI containers.This service must be registered with a
Constants.SERVICE_CHANGECOUNTservice property that must be updated each time any of the DTOs available from this service change.Access to this service requires the
ServicePermission[CDIComponentRuntime, GET]permission. It is intended that only administrative bundles should be granted this permission to limit access to the potentially intrusive methods provided by this service.- Author:
- $Id: 30e6f16ae8837cf2188b01d255a5ec9f0bbfb3ae $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<ContainerDTO>getContainerDTOs(org.osgi.framework.Bundle... bundles)Returns a collection of container description snapshots for a set of bundles.ContainerTemplateDTOgetContainerTemplateDTO(org.osgi.framework.Bundle bundle)Returns theContainerTemplateDTOfor the specified bundle
-
-
-
Method Detail
-
getContainerDTOs
java.util.Collection<ContainerDTO> getContainerDTOs(org.osgi.framework.Bundle... bundles)
Returns a collection of container description snapshots for a set of bundles.- Parameters:
bundles- The bundles who's container description snapshots are to be returned. Specifying no bundles, or the equivalent of an emptyBundlearray, will return the container descriptions of all active bundles that define a container.- Returns:
- A set of descriptions of the container of the specified
bundles. Only bundles that have an associated container are included. If a bundle is listed multiple times inbundlesonly oneContainerDTOis returned. Returns an empty collection if no CDI containers are found.
-
getContainerTemplateDTO
ContainerTemplateDTO getContainerTemplateDTO(org.osgi.framework.Bundle bundle)
Returns theContainerTemplateDTOfor the specified bundle- Parameters:
bundle- The bundle defining a container. Must not benulland must be active.- Returns:
- The container template for of the specified bundle or
nullif it does not have an associated container.
-
-