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 ofVaadinResourceService
BundleActivator
used to provide access to theVaadinResourceService
singleton 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 class
OsgiVaadinResources.ResourceBundleInactiveException
Deprecated.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 VaadinResourceService
getService()
Deprecated.Returns theVaadinResourceService
instance.void
start(org.osgi.framework.BundleContext context)
Deprecated.void
stop(org.osgi.framework.BundleContext context)
Deprecated.
-
-
-
Method Detail
-
getService
public static VaadinResourceService getService() throws OsgiVaadinResources.ResourceBundleInactiveException
Deprecated.Returns theVaadinResourceService
instance. Always returns non-null.- Returns:
- the
resource service
to 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 Exception
Deprecated.- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Throws:
Exception
-
-