org.eclipse.net4j.util.om
Class OSGiActivator

java.lang.Object
  extended by org.eclipse.net4j.util.om.OSGiActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public abstract class OSGiActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator


Constructor Summary
OSGiActivator(OMBundle omBundle)
           
 
Method Summary
protected  java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
protected  void finalize()
           
 OMBundle getOMBundle()
           
 int hashCode()
           
 void start(org.osgi.framework.BundleContext context)
           
static void startBundle(org.osgi.framework.BundleContext context, OMBundle bundle)
           
 void stop(org.osgi.framework.BundleContext context)
           
static void stopBundle(org.osgi.framework.BundleContext context, OMBundle bundle)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OSGiActivator

public OSGiActivator(OMBundle omBundle)
Method Detail

getOMBundle

public final OMBundle getOMBundle()

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

equals

public final boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public final int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

protected final java.lang.Object clone()
                                throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

finalize

protected final void finalize()
                       throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

startBundle

public static void startBundle(org.osgi.framework.BundleContext context,
                               OMBundle bundle)
                        throws java.lang.Error,
                               java.lang.Exception
Throws:
java.lang.Error
java.lang.Exception

stopBundle

public static void stopBundle(org.osgi.framework.BundleContext context,
                              OMBundle bundle)
                       throws java.lang.Error,
                              java.lang.Exception
Throws:
java.lang.Error
java.lang.Exception

Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.