Beispiel #1
0
 protected VersionUtil() {
   Version v = null;
   try {
     /* Class we pass only matters for resource-loading: can't use this Class
      * (as it's just being loaded at this point), nor anything that depends on it.
      */
     v = VersionUtil.versionFor(getClass());
   } catch (Exception e) { // not good to dump to stderr; but that's all we have at this low level
     System.err.println(
         "ERROR: Failed to load Version information for bundle (via "
             + getClass().getName()
             + ").");
   }
   if (v == null) {
     v = Version.unknownVersion();
   }
   _version = v;
 }
 @Override
 public Version version() {
   return VersionUtil.versionFor(getClass());
 }