org.apache.karaf.diagnostic.common
Class BundleDumpProvider

java.lang.Object
  extended by org.apache.karaf.diagnostic.core.common.TextDumpProvider
      extended by org.apache.karaf.diagnostic.common.BundleDumpProvider
All Implemented Interfaces:
DumpProvider

public class BundleDumpProvider
extends TextDumpProvider

Dump provider which produces file named bundles.txt with list of installed bundles and it's state.

Author:
ldywicki

Constructor Summary
BundleDumpProvider(org.osgi.framework.BundleContext context)
          Creates new bundle information file.
 
Method Summary
protected  void writeDump(java.io.OutputStreamWriter writer)
          This method should create output.
 
Methods inherited from class org.apache.karaf.diagnostic.core.common.TextDumpProvider
createDump
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleDumpProvider

public BundleDumpProvider(org.osgi.framework.BundleContext context)
Creates new bundle information file.

Parameters:
context - Bundle context to access framework state.
Method Detail

writeDump

protected void writeDump(java.io.OutputStreamWriter writer)
                  throws java.io.IOException
This method should create output.

Specified by:
writeDump in class TextDumpProvider
Parameters:
writer - Stream which points to file specified in constructor.
Throws:
java.io.IOException


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.