This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267419 - No way for Java MIMEResolvers to be run before MIME resolvers defined via XML
Summary: No way for Java MIMEResolvers to be run before MIME resolvers defined via XML
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-03 09:30 UTC by Tomas Mysik
Modified: 2016-08-03 09:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2016-08-03 09:30:57 UTC
Currently, if one creates Java MIME resolver (class MyResolver extends MIMEResolver), such a resolver is run _after_ all resolvers defined via XML files and there is no way to change it. This is of course problem, if one wants to create resolver for some special file already resolved by any XML declaration (e.g. "*jstestdriver*.conf", see issue #267416 BTW). So, there could perhaps be a method in MIMEResolver e.g.:

protected boolean runBeforeXmlDeclarations()

with default value false (to maintain backward compatibility). Such method could be easily overriden by custom MIME resolvers.

IMO this report is more a bug than an enhancement, feel free to disagree :)

Thanks.