List of usage examples for org.apache.wicket.util.string Strings beforeLast
public static String beforeLast(final String s, final char c)
From source file:com.gfactor.web.wicket.loader.OsgiClassResolver.java
License:Apache License
private boolean classIsExportedByBundle(String classname, Bundle bundle) { List<String> exportedPackages = this.getExportedPackages(bundle); return exportedPackages.contains(Strings.beforeLast(classname, '.')); }
From source file:org.wicketstuff.mergedresources.versioning.AbstractClasspathResourceVersionProvider.java
License:Apache License
protected String getResourcePath(final Class<?> scope, final String fileName) { final String file = Strings.beforeLast(scope.getName(), '.').replace('.', '/') + "/" + fileName; return file;//from w w w . j a v a 2 s . c o m }