public class ClassPathExplorer extends Object
Used by WidgetMapGenerator and ide tools to implement some monkey coding for you.
Developer notice: If you end up reading this comment, I guess you have faced
a sluggish performance of widget compilation or unreliable detection of
components in your classpaths. The thing you might be able to do is to use
annotation processing tool like apt to generate the needed information. Then
either use that information in WidgetMapGenerator
or create the
appropriate monkey code for gwt directly in annotation processor and get rid
of WidgetMapGenerator
. Using annotation processor might be a good
idea when dropping Java 1.5 support (integrated to javac in 6).
Modifier and Type | Class and Description |
---|---|
static class |
ClassPathExplorer.LocationInfo
Contains information about widgetsets and themes found on the classpath.
|
Modifier and Type | Method and Description |
---|---|
static Map<String,URL> |
getAvailableWidgetSets()
Deprecated.
Use
getAvailableWidgetSetsAndStylesheets() instead |
static ClassPathExplorer.LocationInfo |
getAvailableWidgetSetsAndStylesheets()
Finds the names and locations of widgetsets and themes available on the
class path.
|
static URL |
getDefaultSourceDirectory()
Find and return the default source directory where to create new
widgetsets.
|
static URL |
getWidgetsetSourceDirectory(String widgetsetFileName)
Find and return the source directory which contains the given widgetset
file.
|
static void |
main(String[] args)
Test method for helper tool.
|
@Deprecated public static Map<String,URL> getAvailableWidgetSets()
getAvailableWidgetSetsAndStylesheets()
insteadpublic static ClassPathExplorer.LocationInfo getAvailableWidgetSetsAndStylesheets()
public static URL getDefaultSourceDirectory()
public static URL getWidgetsetSourceDirectory(String widgetsetFileName)
widgetsetFileName
- relative path for the widgetsetpublic static void main(String[] args)
Copyright © 2018 Vaadin Ltd. All rights reserved.