The RioServiceDescriptor class is a utility that conforms to the Apache River {@code ServiceStarter} framework, and will start a service using the{@link org.rioproject.loader.CommonClassLoader} as an in-process service.Clients construct this object with the details of the service to be launched, then call
create
to launch the service in invoking object's VM.
This class provides separation of the import codebase (where the server classes are loaded from) from the export codebase (where clients should load classes from for proxies, etc.). This functionality allows multiple service objects to be placed in the same VM, with each object maintaining a distinct codebase and policy.
Services need to implement the following constructor:
<impl>(String[] args, LifeCycle lc)
where,
- args - are the service configuration arguments
- lc - is the hosting environment's {@link LifeCycle} reference.
@author Dennis Reedy