|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.sling.commons.osgi.bundleversion.BundleVersionInfo<File> org.apache.sling.commons.osgi.bundleversion.FileBundleVersionInfo
public class FileBundleVersionInfo
BundleVersionInfo based on a bundle jar file
Field Summary |
---|
Fields inherited from class org.apache.sling.commons.osgi.bundleversion.BundleVersionInfo |
---|
BND_LAST_MODIFIED, BND_LAST_MODIFIED_MISSING, SNAPSHOT_MARKER |
Constructor Summary | |
---|---|
FileBundleVersionInfo(File bundle)
|
Method Summary | |
---|---|
long |
getBundleLastModified()
Return the bundle last modification time, based on the BND_LAST_MODIFIED manifest header, if available. |
String |
getBundleSymbolicName()
Return the bundle symbolic name, null if not available |
File |
getSource()
Return the source of information: underlying File or Bundle |
org.osgi.framework.Version |
getVersion()
Return the bundle version, null if not available |
boolean |
isBundle()
True if the provided data is a valid bundle |
boolean |
isSnapshot()
True if the bundle version indicates a snapshot |
String |
toString()
|
Methods inherited from class org.apache.sling.commons.osgi.bundleversion.BundleVersionInfo |
---|
compareTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileBundleVersionInfo(File bundle) throws IOException
IOException
Method Detail |
---|
public String toString()
toString
in class Object
public boolean isBundle()
BundleVersionInfo
isBundle
in class BundleVersionInfo<File>
public long getBundleLastModified()
BundleVersionInfo
getBundleLastModified
in class BundleVersionInfo<File>
public String getBundleSymbolicName()
BundleVersionInfo
getBundleSymbolicName
in class BundleVersionInfo<File>
public File getSource()
BundleVersionInfo
getSource
in class BundleVersionInfo<File>
public org.osgi.framework.Version getVersion()
BundleVersionInfo
getVersion
in class BundleVersionInfo<File>
public boolean isSnapshot()
BundleVersionInfo
isSnapshot
in class BundleVersionInfo<File>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |