public class Activator extends Object implements org.osgi.framework.BundleActivator
Constructor and Description |
---|
Activator() |
Modifier and Type | Method and Description |
---|---|
static MessageContentSerializerEx |
getParser()
Get the instance of the universAAL serializer
|
static Persistence |
getPersistence()
Get the instance of the Persistence engine
|
static RemoteAPIImpl |
getRemoteAPI()
Get the instance of the Remote API impl
|
static ExecutorService |
getThreadsPool()
Get an instance of ExecutorService that provides access to a Fixed size
Thread Pool
|
static boolean |
isGCMEncrypted()
Identifies if an encryption key has been setup and therefore encryption
is enabled for communication with GCM.
|
static boolean |
isHardcoded()
Get the value of the "hard" variable identifying if a hardcoded
authenticated servlet is being registered programmatically
|
static void |
logD(String method,
String msg)
Helper method to log DEBUG messages
|
static void |
logE(String method,
String msg)
Helper method to log ERROR messages
|
static void |
logI(String method,
String msg)
Helper method to log INFO messages
|
static void |
logW(String method,
String msg)
Helper method to log WARN messages
|
boolean |
register(org.osgi.service.http.HttpService http)
Registers the Servlet into the OSGi HTTP service.
|
void |
start(org.osgi.framework.BundleContext bcontext) |
void |
stop(org.osgi.framework.BundleContext bcontext) |
boolean |
unregister(org.osgi.service.http.HttpService http)
Unregisters the Servlet from the OSGi HTTP service.
|
public void start(org.osgi.framework.BundleContext bcontext) throws Exception
start
in interface org.osgi.framework.BundleActivator
Exception
public void stop(org.osgi.framework.BundleContext bcontext) throws Exception
stop
in interface org.osgi.framework.BundleActivator
Exception
public boolean register(org.osgi.service.http.HttpService http)
http
- The referenced OSGi HTTP servicepublic boolean unregister(org.osgi.service.http.HttpService http)
http
- The referenced OSGi HTTP servicepublic static void logD(String method, String msg)
method
- The method calling to logmsg
- The messge to logpublic static void logI(String method, String msg)
method
- The method calling to logmsg
- The messge to logpublic static void logW(String method, String msg)
method
- The method calling to logmsg
- The messge to logpublic static void logE(String method, String msg)
method
- The method calling to logmsg
- The messge to logpublic static Persistence getPersistence()
public static RemoteAPIImpl getRemoteAPI()
public static MessageContentSerializerEx getParser()
public static boolean isHardcoded()
public static boolean isGCMEncrypted()
public static ExecutorService getThreadsPool()
Copyright © 2018 universAAL Consortium. All rights reserved.