com.ibm.cics.server.internal
Class OSGiWrapper

java.lang.Object
  extended by com.ibm.cics.server.internal.OSGiWrapper

public class OSGiWrapper
extends java.lang.Object

Used by the Wrapper for operations that require accessing OSGi classes, to avoid ClassNotFoundExceptions when Wrapper is used in situations where OSGi is not enabled.


Constructor Summary
OSGiWrapper()
           
 
Method Summary
static java.io.OutputStream getOutputRedirectionPlugin(java.lang.String outClassName)
           Retrieves an OutputRedirectionPlugin service from the OSGi framework.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiWrapper

public OSGiWrapper()
Method Detail

getOutputRedirectionPlugin

public static java.io.OutputStream getOutputRedirectionPlugin(java.lang.String outClassName)
                                                       throws org.osgi.framework.InvalidSyntaxException

Retrieves an OutputRedirectionPlugin service from the OSGi framework.

Parameters:
outClassName - The class name of the OutputRedirectionPlugin, as specified by the USEROUTPUTCLASS entry in the JVM profile.
Returns:
The OutputRedirectionPlugin specified, or null if no matching service was found, the service was unregistered, or the service did not extend OutputStream.
Throws:
org.osgi.framework.InvalidSyntaxException - If the service filter contains an invalid filter string that cannot be parsed.