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

org.netbeans.api.editor.mimelookup
Annotation Type MimeRegistration


@Target(value={TYPE,METHOD})
@Retention(value=SOURCE)
public @interface MimeRegistration

Register an implementation of a service to the mime lookup under given mime-type. This annotation can be used either to annotate implementation class, in which case it must have a public non-arg constructor, or a public static factory method returning the service.

Since:
1.19

Required Element Summary
 String mimeType
          Mime type to which should be the given provider registered.
 Class<?> service
          The API service.
 
Optional Element Summary
 int position
          Position of the provider in the list of providers.
 

Element Detail

service

public abstract Class<?> service
The API service.


mimeType

public abstract String mimeType
Mime type to which should be the given provider registered.

position

public abstract int position
Position of the provider in the list of providers.

Default:
2147483647

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

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.