Skip to main content
summaryrefslogtreecommitdiffstats
blob: 86ad6dbc74429a1bd9c8bcf0f13fc58b3dc65c6b (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
/*******************************************************************************
 * Copyright (c) 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *   David Knibb               initial implementation      
 *   Matthew Webster           Eclipse 3.2 changes     
 *******************************************************************************/

package org.eclipse.equinox.service.weaving;

import java.io.IOException;

import org.eclipse.osgi.service.resolver.BundleDescription;
import org.eclipse.osgi.service.resolver.State;
import org.osgi.framework.Bundle;

public interface IWeavingService {

    public void flushGeneratedClasses(ClassLoader loader);

    public boolean generatedClassesExistFor(ClassLoader loader, String className);

    public IWeavingService getInstance(ClassLoader loader, Bundle bundle,
            State resolverState, BundleDescription bundleDesciption,
            SupplementerRegistry supplementerRegistry);

    public String getKey();

    public byte[] preProcess(String name, byte[] classbytes, ClassLoader loader)
            throws IOException;

}

Back to the top