KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > java > plugin > registry > PluginElement


1 /*****************************************************************************
2  * Java Plug-in Framework (JPF)
3  * Copyright (C) 2004-2005 Dmitry Olshansky
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *****************************************************************************/

19 package org.java.plugin.registry;
20
21 /**
22  * This interface abstracts a plug-in element - a thing that is declared in
23  * plug-in or plug-in fragment descriptor.
24  * @version $Id: PluginElement.java,v 1.1 2005/07/20 18:43:46 ddimon Exp $
25  */

26 public interface PluginElement extends Identity, Documentable {
27     /**
28      * Returns plug-in descriptor, this element belongs to. This method
29      * should never return <code>null</code>.
30      * @return plug-in descriptor, this element belongs to
31      */

32     PluginDescriptor getDeclaringPluginDescriptor();
33     
34     /**
35      * Returns descriptor of plug-in fragment that contributes this element.
36      * This method may return <code>null</code>, if element is contributed by
37      * plug-in directly.
38      * @return descriptor of plug-in fragment that contributes this element
39      */

40     PluginFragment getDeclaringPluginFragment();
41 }
42
Popular Tags