01: /*******************************************************************************
02: * Copyright (c) 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.launching.environments;
11:
12: import org.eclipse.jdt.core.IAccessRule;
13: import org.eclipse.jdt.core.IJavaProject;
14: import org.eclipse.jdt.launching.IVMInstall;
15: import org.eclipse.jdt.launching.LibraryLocation;
16:
17: /**
18: * Contributes access rules for an execution environment. Contributed with
19: * an execution environments extension.
20: * <p>
21: * Clients contributing an access rule participant may implement this interface.
22: * </p>
23: * @since 3.3
24: */
25: public interface IAccessRuleParticipant {
26:
27: /**
28: * Returns a collection of access rules to be applied to the specified VM
29: * libraries and execution environment in the context of the given project.
30: * An array of access rules is returned for each library specified by
31: * <code>libraries</code>, possibly empty.
32: *
33: * @param environment the environment that access rules are requested for
34: * @param vm the vm that access rules are requested for
35: * @param libraries the libraries that access rules are requested for
36: * @param project the project the access rules are requested for or <code>null</code> if none
37: * @return a collection of arrays of access rules - one array per library, possibly empty
38: * @since 3.3
39: */
40: public IAccessRule[][] getAccessRules(
41: IExecutionEnvironment environment, IVMInstall vm,
42: LibraryLocation[] libraries, IJavaProject project);
43: }
|