Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql
Class Activator

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.Activator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class Activator
extends Object
implements org.osgi.framework.BundleActivator

Needed to lookup local bundle resources - which should use Bundle API.

Author:
Bogdan Stefanescu

Constructor Summary
Activator()
           
 
Method Summary
 org.osgi.framework.BundleContext getContext()
           
static Activator getInstance()
           
static URL getResource(String path)
           
static InputStream getResourceAsStream(String path)
           
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activator

public Activator()
Method Detail

getResource

public static URL getResource(String path)

getResourceAsStream

public static InputStream getResourceAsStream(String path)
                                       throws IOException
Throws:
IOException

getInstance

public static Activator getInstance()

getContext

public org.osgi.framework.BundleContext getContext()

start

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

stop

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.