KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > launching > environments > IAccessRuleParticipant


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.launching.environments;
12
13 import org.eclipse.jdt.core.IAccessRule;
14 import org.eclipse.jdt.core.IJavaProject;
15 import org.eclipse.jdt.launching.IVMInstall;
16 import org.eclipse.jdt.launching.LibraryLocation;
17
18 /**
19  * Contributes access rules for an execution environment. Contributed with
20  * an execution environments extension.
21  * <p>
22  * Clients contributing an access rule participant may implement this interface.
23  * </p>
24  * @since 3.3
25  */

26 public interface IAccessRuleParticipant {
27
28     /**
29      * Returns a collection of access rules to be applied to the specified VM
30      * libraries and execution environment in the context of the given project.
31      * An array of access rules is returned for each library specified by
32      * <code>libraries</code>, possibly empty.
33      *
34      * @param environment the environment that access rules are requested for
35      * @param vm the vm that access rules are requested for
36      * @param libraries the libraries that access rules are requested for
37      * @param project the project the access rules are requested for or <code>null</code> if none
38      * @return a collection of arrays of access rules - one array per library, possibly empty
39      * @since 3.3
40      */

41     public IAccessRule[][] getAccessRules(IExecutionEnvironment environment, IVMInstall vm, LibraryLocation[] libraries, IJavaProject project);
42 }
43
Popular Tags