org.netbeans.modules.editor.mimelookup/1 1.14.1

org.netbeans.spi.editor.mimelookup
Interface MimeDataProvider


public interface MimeDataProvider

Provides a Lookup for the specific MimePath.

The implementations of this interface should be registered among the services in the default lookup using ServiceProvider.


Method Summary
 Lookup getLookup(MimePath mimePath)
          Retrieves a Lookup for the given MimePath.
 

Method Detail

getLookup

Lookup getLookup(MimePath mimePath)
Retrieves a Lookup for the given MimePath.

The Lookup returned by this method should hold a reference to the MimePath it was created for.

The implementors should consider caching of the Lookup instances returned by this method for performance reasons. The MimePath object can be used as a stable key for such a cache, because it implements its equals and hashCode method in the suitable way.

Parameters:
mimePath - The mime path to get the Lookup for. The mime path passed in can't be null, but it can be the MimePath.EMPTY mime path.
Returns:
The Lookup for the given MimePath or null if there is no lookup available for this mime path.

org.netbeans.modules.editor.mimelookup/1 1.14.1

Built on September 7 2010.  |  Portions Copyright 1997-2010 Sun Microsystems, Inc. All rights reserved.