com.vaadin.server.widgetsetutils
Class ConnectorBundleLoaderFactory
java.lang.Object
Generator
com.vaadin.server.widgetsetutils.ConnectorBundleLoaderFactory
public class ConnectorBundleLoaderFactory
- extends Generator
|
Method Summary |
java.lang.String |
generate(TreeLogger logger,
GeneratorContext context,
java.lang.String typeName)
|
static java.lang.String |
getBoxedTypeName(JType type)
|
static java.lang.String |
getClassLiteralString(JType type)
|
protected java.util.Collection<JClassType> |
getConnectorsForWidgetset(TreeLogger logger,
TypeOracle typeOracle)
Returns the connector types that should be included in the widgetset. |
protected com.vaadin.shared.ui.Connect.LoadStyle |
getLoadStyle(JClassType connectorType)
|
static void |
writeClassLiteral(com.google.gwt.user.rebind.SourceWriter w,
JType type)
|
static void |
writeTypeCreator(com.google.gwt.user.rebind.SourceWriter sourceWriter,
JType type)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectorBundleLoaderFactory
public ConnectorBundleLoaderFactory()
generate
public java.lang.String generate(TreeLogger logger,
GeneratorContext context,
java.lang.String typeName)
throws UnableToCompleteException
- Throws:
UnableToCompleteException
writeClassLiteral
public static void writeClassLiteral(com.google.gwt.user.rebind.SourceWriter w,
JType type)
getClassLiteralString
public static java.lang.String getClassLiteralString(JType type)
getConnectorsForWidgetset
protected java.util.Collection<JClassType> getConnectorsForWidgetset(TreeLogger logger,
TypeOracle typeOracle)
throws UnableToCompleteException
- Returns the connector types that should be included in the widgetset.
This method can be overridden to create a widgetset only containing
selected connectors.
The default implementation finds all type implementing
ServerConnector that have a @Connect annotation. It also
checks that multiple connectors aren't connected to the same server-side
class.
- Parameters:
logger - the logger to which information can be loggedtypeOracle - the type oracle that can be used for finding types
- Returns:
- a collection of all the connector types that should be included
in the widgetset
- Throws:
UnableToCompleteException - if the operation fails
getLoadStyle
protected com.vaadin.shared.ui.Connect.LoadStyle getLoadStyle(JClassType connectorType)
getBoxedTypeName
public static java.lang.String getBoxedTypeName(JType type)
writeTypeCreator
public static void writeTypeCreator(com.google.gwt.user.rebind.SourceWriter sourceWriter,
JType type)
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.