org.jboss.osgi.husky.runtime.osgi
Class HuskyActivator

java.lang.Object
  extended by org.jboss.osgi.husky.runtime.osgi.HuskyActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

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

This is the Husky BundleActivator. It unconditionally starts the JMXConnector. If the SocketConnector.PROP_SOCKET_CONNECTOR_HOST and SocketConnector.PROP_SOCKET_CONNECTOR_PORT properites are set it also starts the SocketConnector. Finally it starts the HuskyExtender, which is a BundleListener that looks for manifest headers called HuskyExtender.HEADER_TEST_PACKAGE.

Since:
17-May-2009
Author:
Thomas.Diesler@jboss.com

Constructor Summary
HuskyActivator()
           
 
Method Summary
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HuskyActivator

public HuskyActivator()
Method Detail

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


Copyright © 2009. All Rights Reserved.