Class OSGiUIProvider
- java.lang.Object
-
- com.vaadin.server.UIProvider
-
- org.opennms.vaadin.extender.internal.servlet.OSGiUIProvider
-
- All Implemented Interfaces:
Serializable
public class OSGiUIProvider extends com.vaadin.server.UIProviderThis class is responsible to dispatch any Vaadin UI creation (exposed viaApplicationFactory) accordingly. This was required as aUIProvidershould take care of all ui creation, and not just one, which was the case originally, but broke with the Karaf 4.2.2 Upgrade.- Author:
- mvrueden
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OSGiUIProvider()OSGiUIProvider(ApplicationFactory applicationFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddApplicationFactory(ApplicationFactory applicationFactory)com.vaadin.ui.UIcreateInstance(com.vaadin.server.UICreateEvent event)Class<? extends com.vaadin.ui.UI>getUIClass(com.vaadin.server.UIClassSelectionEvent event)voidremoveApplicationFactory(ApplicationFactory applicationFactory)
-
-
-
Constructor Detail
-
OSGiUIProvider
public OSGiUIProvider()
-
OSGiUIProvider
public OSGiUIProvider(ApplicationFactory applicationFactory)
-
-
Method Detail
-
getUIClass
public Class<? extends com.vaadin.ui.UI> getUIClass(com.vaadin.server.UIClassSelectionEvent event)
- Specified by:
getUIClassin classcom.vaadin.server.UIProvider
-
createInstance
public com.vaadin.ui.UI createInstance(com.vaadin.server.UICreateEvent event)
- Overrides:
createInstancein classcom.vaadin.server.UIProvider
-
addApplicationFactory
public void addApplicationFactory(ApplicationFactory applicationFactory)
-
removeApplicationFactory
public void removeApplicationFactory(ApplicationFactory applicationFactory)
-
-