A.3. Chapter 9—Permission-based Security and Administration
A.3.1. Parameter Services
The parameter bundle provides a comprehensive example that illustrates the following features:
Service factory
Asynchronous event handling
Permission checking
Performing privileged actions
In a Java run-time environment that does not support permissions, comment out the security-related code.
A.3.1.1. com/acme/service/param/ParamService.java
package com.acme.service.param; /** * This service allows a caller to store and retrieve parameters * in the form of a key/value pair. */ public interface ParameterService { /** * Stores a parameter. * @param key the name of the parameter. * @param value the value of the parameter. */ public void set(String key, String value); ...
Get Programming Open Service Gateways with Java Embedded Server™ Technology now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.