blob: 188c429a4978ed4aad0ff4388dfdf3515749bd90 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*******************************************************************************
* Copyright (c) 2008, 2009 Martin Lippert and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Martin Lippert initial implementation
*******************************************************************************/
package org.eclipse.equinox.service.weaving;
import org.osgi.framework.Bundle;
import org.osgi.framework.wiring.BundleRevision;
/**
* This is the central interface for other bundles to implement when they would
* like to contribute a concrete weaving mechanism. Bundles should implement
* this interface and register an implementation as an OSGi service under this
* interface.
*
* @author Martin Lippert
*/
public interface IWeavingServiceFactory {
/**
* Create a concrete weaving implementation for the given bundle. This is
* called by the basic equinox aspects weaving hook mechanism lazily when
* the classloader for the bundle is created.
*
* @param loader The classloader of the bundle for which to create a weaver
* @param bundle The bundle for which to create the weaver
* @param bundleRevision The revision of the bundle for which to create a
* weaver
* @param supplementerRegistry The supplementer registry which is used by
* the core equinox aspects hook
* @return The created weaver for the given bundle
*/
public IWeavingService createWeavingService(ClassLoader loader,
Bundle bundle, BundleRevision bundleRevision,
ISupplementerRegistry supplementerRegistry);
}
|