Package io.wcm.wcm.commons.bundleinfo
Interface BundleInfo
-
- All Superinterfaces:
Comparable<BundleInfo>
@ProviderType public interface BundleInfo extends Comparable<BundleInfo>
Provides meta-information about an bundle in the system.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull org.osgi.framework.BundlegetBundle()@Nullable DategetLastModified()@NotNull StringgetName()@NotNull BundleStategetState()@NotNull StringgetSymbolicName()@NotNull StringgetVersion()booleanisFragment()-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
getBundle
@NotNull @NotNull org.osgi.framework.Bundle getBundle()
- Returns:
- OSGI bundle
-
getSymbolicName
@NotNull @NotNull String getSymbolicName()
- Returns:
- Bundle symbolic name
-
getName
@NotNull @NotNull String getName()
- Returns:
- Bundle name (fallback to symbolic name if no name default)
-
getVersion
@NotNull @NotNull String getVersion()
- Returns:
- Version string
-
getState
@NotNull @NotNull BundleState getState()
- Returns:
- Bundle state
-
getLastModified
@Nullable @Nullable Date getLastModified()
- Returns:
- Last modified date
-
isFragment
boolean isFragment()
- Returns:
- true if bundle is a fragment bundle
-
-