Package com.vaadin.osgi.resources
Class OsgiVaadinResources
- java.lang.Object
-
- com.vaadin.osgi.resources.OsgiVaadinResources
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class OsgiVaadinResources extends Object implements org.osgi.framework.BundleActivator
Deprecated.use OSGi DS services to bind a instance ofVaadinResourceServiceBundleActivatorused to provide access to theVaadinResourceServicesingleton for publishing themes, widgetsets and other necessary resources.- Since:
- 8.1
- Author:
- Vaadin Ltd.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOsgiVaadinResources.ResourceBundleInactiveExceptionDeprecated.Thrown if a method is called when the Resource bundle is not active.
-
Constructor Summary
Constructors Constructor Description OsgiVaadinResources()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VaadinResourceServicegetService()Deprecated.Returns theVaadinResourceServiceinstance.voidstart(org.osgi.framework.BundleContext context)Deprecated.voidstop(org.osgi.framework.BundleContext context)Deprecated.
-
-
-
Method Detail
-
getService
public static VaadinResourceService getService() throws OsgiVaadinResources.ResourceBundleInactiveException
Deprecated.Returns theVaadinResourceServiceinstance. Always returns non-null.- Returns:
- the
resource serviceto use for publishing themes, widgetsets and other necessary resources - Throws:
OsgiVaadinResources.ResourceBundleInactiveException- if the bundle is not active
-
start
public void start(org.osgi.framework.BundleContext context) throws ExceptionDeprecated.- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
-