History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-1863
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Robin Shen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Rest resource contribution will be ignored if corresponding plugin is disabled but then enabled after a RESTful call

Created: 26/Nov/13 12:57 AM   Updated: 14/Dec/13 05:39 AM
Component/s: None
Affects Version/s: 5.1.0
Fix Version/s: 5.1.1, 5.1.3

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
I have a problem with RestResourceContribution.
I am trying to serve some REST API using RestResourceContribution, but it's implemented classes seem like be loaded only on server starting time and at that time server loads only enabled plugins.
This is problematic because when plugin setting class have @NotNull fields it will be not enabled at the first time it loaded. And if some other REST APIs get called before this plugin enabled, then my REST API cannot be added to servlet because jersey client already instantiated.

What I mean is that :
RestModule.getClasses() -> pluginManager.getExtensions(RestResourceContribution.class) -> this only load enabled RestResourceContribution plugins and if other REST API is called before my plugin is enabled, my REST API cannot be added to servlet provider.

So how about add RestResourceContribution dedicated function on PluginManager :

public <T> List<T> getExtensions(RestResourceContribution extensionPoint) {
// do not check if plugin enabled or not.
}

 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.