public class OSGiResourceBundleUtils extends Object
ResourceBundle
s in OSGi Bundle
s.Modifier and Type | Method and Description |
---|---|
static String |
getPackageResourceStringPrefixed(String aPackage,
String resourceKey,
org.osgi.framework.Bundle bundle)
Gets a resource string from a
ResourceBundle called
Bundle.properties (or a if the value starts with '%' the rest of the
value is interpreted as a property key and the value gets looked-up in
the Bundle.properties file (or a locale specific derivation of this
file), which has to be in the same package as the annotated action. |
public static String getPackageResourceStringPrefixed(String aPackage, String resourceKey, org.osgi.framework.Bundle bundle)
ResourceBundle
called
Bundle.properties (or a if the value starts with '%' the rest of the
value is interpreted as a property key and the value gets looked-up in
the Bundle.properties file (or a locale specific derivation of this
file), which has to be in the same package as the annotated action.aPackage
- resourceKey
- bundle
- Copyright © 2012–2017 Drombler. All rights reserved.