Package com.composum.sling.nodes.tools
Class OsgiBundleModel
- java.lang.Object
-
- com.composum.sling.core.AbstractSlingBean
-
- com.composum.sling.nodes.tools.OsgiBundleModel
-
- All Implemented Interfaces:
com.composum.sling.core.bean.RestrictedBean
,com.composum.sling.core.SlingBean
public class OsgiBundleModel extends com.composum.sling.core.AbstractSlingBean
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
OsgiBundleModel.Exported
class
OsgiBundleModel.Imported
class
OsgiBundleModel.PackageReference
class
OsgiBundleModel.PackageSet
class
OsgiBundleModel.Resolved
static class
OsgiBundleModel.State
-
Field Summary
-
Constructor Summary
Constructors Constructor Description OsgiBundleModel()
OsgiBundleModel(@NotNull com.composum.sling.core.BeanContext context, @NotNull org.osgi.framework.Bundle bundle)
OsgiBundleModel(com.composum.sling.core.BeanContext context)
OsgiBundleModel(com.composum.sling.core.BeanContext context, org.apache.sling.api.resource.Resource resource)
-
Method Summary
-
Methods inherited from class com.composum.sling.core.AbstractSlingBean
executeQuery, findBeans, findNodes, findNodes, findPathList, getContentResource, getDomId, getHasTitle, getId, getInherited, getInherited, getNode, getParent, getParent, getPath, getPermissible, getProperty, getProperty, getQueryManager, getRequest, getResolver, getResource, getResponse, getServiceKey, getSession, getSling, getStringId, getTitle, getType, getUrl, getUsername, initialize, isPermissible, isReadAllowed, isWriteAllowed, toString, toString
-
-
-
-
Field Detail
-
BUNDLE_ID_SUFFIX
public static final Pattern BUNDLE_ID_SUFFIX
-
HD_ARCHIVER_VERSION
public static final String HD_ARCHIVER_VERSION
- See Also:
- Constant Field Values
-
HD_BUNDLE_CATEGORY
public static final String HD_BUNDLE_CATEGORY
- See Also:
- Constant Field Values
-
HD_BUNDLE_LICENSE
public static final String HD_BUNDLE_LICENSE
- See Also:
- Constant Field Values
-
HD_BUNDLE_NAME
public static final String HD_BUNDLE_NAME
- See Also:
- Constant Field Values
-
HD_BUNDLE_VENDOR
public static final String HD_BUNDLE_VENDOR
- See Also:
- Constant Field Values
-
HD_CREATED_BY
public static final String HD_CREATED_BY
- See Also:
- Constant Field Values
-
HD_DESCRIPTION
public static final String HD_DESCRIPTION
- See Also:
- Constant Field Values
-
HD_DYNAMIC_IMPORT_PACKAGE
public static final String HD_DYNAMIC_IMPORT_PACKAGE
- See Also:
- Constant Field Values
-
HD_EMBED_DEPENDENCY
public static final String HD_EMBED_DEPENDENCY
- See Also:
- Constant Field Values
-
HD_EXPORT_PACKAGE
public static final String HD_EXPORT_PACKAGE
- See Also:
- Constant Field Values
-
HD_IMPLEMENTATION_BUILD
public static final String HD_IMPLEMENTATION_BUILD
- See Also:
- Constant Field Values
-
HD_IMPLEMENTATION_TITLE
public static final String HD_IMPLEMENTATION_TITLE
- See Also:
- Constant Field Values
-
HD_IMPLEMENTATION_VENDOR
public static final String HD_IMPLEMENTATION_VENDOR
- See Also:
- Constant Field Values
-
HD_IMPLEMENTATION_VENDOR_ID
public static final String HD_IMPLEMENTATION_VENDOR_ID
- See Also:
- Constant Field Values
-
HD_IMPLEMENTATION_VERSION
public static final String HD_IMPLEMENTATION_VERSION
- See Also:
- Constant Field Values
-
HD_IMPORT_PACKAGE
public static final String HD_IMPORT_PACKAGE
- See Also:
- Constant Field Values
-
HD_INCLUDE_RESOURCE
public static final String HD_INCLUDE_RESOURCE
- See Also:
- Constant Field Values
-
HD_PRIVATE_PACKAGE
public static final String HD_PRIVATE_PACKAGE
- See Also:
- Constant Field Values
-
HD_PROVIDE_CAPABILITY
public static final String HD_PROVIDE_CAPABILITY
- See Also:
- Constant Field Values
-
HD_REQUIRE_CAPABILITY
public static final String HD_REQUIRE_CAPABILITY
- See Also:
- Constant Field Values
-
HD_REQ_EXEC_ENVIRONMENT
public static final String HD_REQ_EXEC_ENVIRONMENT
- See Also:
- Constant Field Values
-
HD_SERVICE_COMPONENT
public static final String HD_SERVICE_COMPONENT
- See Also:
- Constant Field Values
-
HD_SPECIFICATION_TITLE
public static final String HD_SPECIFICATION_TITLE
- See Also:
- Constant Field Values
-
HD_SPECIFICATION_VENDOR
public static final String HD_SPECIFICATION_VENDOR
- See Also:
- Constant Field Values
-
HD_SPECIFICATION_VERSION
public static final String HD_SPECIFICATION_VERSION
- See Also:
- Constant Field Values
-
bundle
protected org.osgi.framework.Bundle bundle
-
name
protected String name
-
category
protected String category
-
PACKAGE_REF_START
public static final Pattern PACKAGE_REF_START
-
PACKAGE_REF_OPTION
public static final Pattern PACKAGE_REF_OPTION
-
-
Constructor Detail
-
OsgiBundleModel
public OsgiBundleModel(@NotNull @NotNull com.composum.sling.core.BeanContext context, @NotNull @NotNull org.osgi.framework.Bundle bundle)
-
OsgiBundleModel
public OsgiBundleModel(com.composum.sling.core.BeanContext context, org.apache.sling.api.resource.Resource resource)
-
OsgiBundleModel
public OsgiBundleModel(com.composum.sling.core.BeanContext context)
-
OsgiBundleModel
public OsgiBundleModel()
-
-
Method Detail
-
initialize
public void initialize(com.composum.sling.core.BeanContext context, org.apache.sling.api.resource.Resource resource)
- Specified by:
initialize
in interfacecom.composum.sling.core.SlingBean
- Overrides:
initialize
in classcom.composum.sling.core.AbstractSlingBean
-
initialize
protected void initialize(@NotNull @NotNull org.osgi.framework.Bundle bundle)
-
isValid
public boolean isValid()
-
isFragment
public boolean isFragment()
-
isFragment
protected static boolean isFragment(@NotNull @NotNull org.osgi.framework.Bundle bundle)
-
getBundleId
@NotNull public @NotNull Long getBundleId()
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getName
in interfacecom.composum.sling.core.SlingBean
- Overrides:
getName
in classcom.composum.sling.core.AbstractSlingBean
-
getSymbolicName
@NotNull public @NotNull String getSymbolicName()
-
getCategory
@NotNull public @NotNull String getCategory()
-
getState
@NotNull public @NotNull OsgiBundleModel.State getState()
-
getState
protected static OsgiBundleModel.State getState(@NotNull @NotNull org.osgi.framework.Bundle bundle)
-
isActive
public boolean isActive()
-
isActive
protected static boolean isActive(org.osgi.framework.Bundle bundle)
-
getLastModified
@NotNull public @NotNull String getLastModified()
-
getVersion
@NotNull public @NotNull String getVersion()
-
getLocation
@NotNull public @NotNull String getLocation()
-
getProvidedServices
@NotNull public @NotNull Iterator<OsgiServiceModel> getProvidedServices()
-
getUsedServices
@NotNull public @NotNull Iterator<OsgiServiceModel> getUsedServices()
-
getExported
public Collection<OsgiBundleModel.Exported> getExported()
-
getExported
@Nullable public @Nullable OsgiBundleModel.Exported getExported(@NotNull @NotNull String symbolicName)
-
getExportedSet
public Map<String,OsgiBundleModel.Exported> getExportedSet()
-
getImported
public Collection<OsgiBundleModel.Imported> getImported()
-
getImported
@Nullable public @Nullable OsgiBundleModel.Imported getImported(@NotNull @NotNull String symbolicName)
-
getImportedSet
public Map<String,OsgiBundleModel.Imported> getImportedSet()
-
getResolved
public Collection<OsgiBundleModel.Resolved> getResolved()
-
getResolved
@Nullable public @Nullable OsgiBundleModel.Resolved getResolved(@NotNull @NotNull String symbolicName)
-
getResolvedSet
public Map<String,OsgiBundleModel.Resolved> getResolvedSet()
-
scanPackgeReferences
@NotNull protected @NotNull OsgiBundleModel.PackageSet scanPackgeReferences(@NotNull @NotNull String references)
-
getBundleContext
protected org.osgi.framework.BundleContext getBundleContext()
-
-