|
Guvnor web application Drools 6.0.0-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.guvnor.client.moduleeditor.drools.SuggestionCompletionCache
@ApplicationScoped public class SuggestionCompletionCache
This utility cache will maintain a cache of suggestion completion engines, as they are somewhat heavy to load. If it needs to be loaded, then it will load, and then call the appropriate action, and keep it in the cache.
Constructor Summary | |
---|---|
SuggestionCompletionCache()
|
Method Summary | |
---|---|
void |
applyFactFilter(String packageName,
FactTypeFilter filter,
com.google.gwt.user.client.Command done)
Reloads a package and then applies the given filter. |
SuggestionCompletionEngine |
getEngineFromCache(String packageName)
|
static SuggestionCompletionCache |
getInstance()
|
void |
loadPackage(String packageName,
com.google.gwt.user.client.Command done)
Gets the last version of SCE for a package and then applies any pre-existing filter to it. |
void |
onRefreshModuleDataModel(RefreshModuleDataModelEvent refreshModuleDataModelEvent)
|
void |
refreshPackage(String packageName,
com.google.gwt.user.client.Command done)
Refresh SCE for a specific package removing any filter and retrieving the last version of it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SuggestionCompletionCache()
Method Detail |
---|
public static SuggestionCompletionCache getInstance()
public void onRefreshModuleDataModel(@Observes RefreshModuleDataModelEvent refreshModuleDataModelEvent)
public SuggestionCompletionEngine getEngineFromCache(String packageName)
public void refreshPackage(String packageName, com.google.gwt.user.client.Command done)
packageName
- done
- public void loadPackage(String packageName, com.google.gwt.user.client.Command done)
packageName
- done
- public void applyFactFilter(String packageName, FactTypeFilter filter, com.google.gwt.user.client.Command done)
packageName
- the package name.filter
- the filter.done
- the command to be executed after the filter is applied.
|
Guvnor web application Drools 6.0.0-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |