public interface OnmsServiceManager extends SessionListener
BundleContext
.
Its intention is to provide a so called session-scope for services.
The session-scope is realized by the VaadinApplicationContext
-object.BundleContext
.Modifier and Type | Method and Description |
---|---|
VaadinApplicationContext |
createApplicationContext(VaadinApplicationContextCreator creator) |
EventRegistry |
getEventRegistry() |
<T> T |
getService(Class<T> clazz,
VaadinApplicationContext applicationContext)
Returns a service in session-scope.
|
<T> List<T> |
getServices(Class<T> clazz,
VaadinApplicationContext applicationContext,
Hashtable<String,Object> additionalProperties)
Returns all registered services within session-scope and may be consider additional Properties.
|
<T> void |
registerAsService(Class<T> serviceClass,
T serviceBean,
VaadinApplicationContext applicationContext)
Register a service with session scope.
|
<T> void |
registerAsService(Class<T> serviceClass,
T serviceBean,
VaadinApplicationContext applicationContext,
Dictionary<String,Object> additionalProperties)
Registers a service with session scope but allows to set additional Properties.
|
sessionDestroyed, sessionInitialized
<T> void registerAsService(Class<T> serviceClass, T serviceBean, VaadinApplicationContext applicationContext)
serviceBean
- The service to be registered. Must not be null.applicationContext
- The session scope. Must not be null.<T> void registerAsService(Class<T> serviceClass, T serviceBean, VaadinApplicationContext applicationContext, Dictionary<String,Object> additionalProperties)
serviceBean
- The service to be registered. Must not be null.applicationContext
- the session scope. Must not be null.additionalProperties
- Additional Properties. Must not be null.<T> T getService(Class<T> clazz, VaadinApplicationContext applicationContext)
clazz
- The type of the service. Must not be null.applicationContext
- The session-scope. Must not be null.<T> List<T> getServices(Class<T> clazz, VaadinApplicationContext applicationContext, Hashtable<String,Object> additionalProperties)
clazz
- the type of the service. Must not be null.applicationContext
- The session scope. Must not be null.additionalProperties
- optional additional propeties. Must not be null.VaadinApplicationContext createApplicationContext(VaadinApplicationContextCreator creator)
EventRegistry getEventRegistry()
Copyright © 2021. All rights reserved.