|
org.netbeans.modules.editor.mimelookup/1 1.3.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Class2LayerFolder
Provides a mapping of class to specific subfolder of the xml layer filesystem. Instances of this class should be registed to default lookup by META-INF/services registration. Using this mapping one can achieve the convenient way of using MimeLookup i.e.
MimeLookup.getMimeLookup("text/x-java").lookup(FoldManager.class);
Using this, the registered instances of FoldManager will be retrieved from the folder with path "Editors/text/x-java/foldManager" provided that FoldManager.class is registered to a subfolder "foldManager" via Class2LayerFolder registration.
Method Summary | |
---|---|
Class |
getClazz()
Gets class of the looked-up object, i.e. |
InstanceProvider |
getInstanceProvider()
Get an instance provider if necessary or return null if the default behavior
which returns all the collected instances as the result is desired. |
String |
getLayerFolderName()
Gets layer subfolder name, where the class should be found. |
Method Detail |
---|
Class getClazz()
String getLayerFolderName()
Editors/text/x-java/<desired-layer-subfolder-name>
or
Editors/<desired-layer-folder-name>
for mime type insensitive objects
InstanceProvider getInstanceProvider()
null
if the default behavior
which returns all the collected instances as the result is desired.
getClazz()
or null
if all the declared fileobjects should
be instantiated and returned as lookup result.
|
org.netbeans.modules.editor.mimelookup/1 1.3.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |