Search in sources :

Example 1 with ScopeProvider

use of org.apache.aries.subsystem.scope.itests.ScopeProvider in project aries by apache.

the class Activator method start.

public void start(BundleContext bundleContext) throws Exception {
    scopeRef = bundleContext.getServiceReference(Scope.class);
    final Scope scope = bundleContext.getService(scopeRef);
    scopeProviderReg = bundleContext.registerService(ScopeProvider.class, new ScopeProvider() {

        public Scope getScope() {
            return scope;
        }
    }, null);
}
Also used : ScopeProvider(org.apache.aries.subsystem.scope.itests.ScopeProvider) Scope(org.apache.aries.subsystem.scope.Scope)

Aggregations

Scope (org.apache.aries.subsystem.scope.Scope)1 ScopeProvider (org.apache.aries.subsystem.scope.itests.ScopeProvider)1