Search in sources :

Example 1 with ResourceRegistryPartAdapter

use of io.crnk.core.engine.registry.ResourceRegistryPartAdapter in project crnk-framework by crnk-project.

the class MetaModule method initRefreshListener.

private void initRefreshListener() {
    ResourceRegistry resourceRegistry = context.getResourceRegistry();
    resourceRegistry.addListener(new ResourceRegistryPartAdapter() {

        @Override
        public void onChanged(ResourceRegistryPartEvent event) {
            currentLookup = null;
        }
    });
}
Also used : ResourceRegistryPartEvent(io.crnk.core.engine.registry.ResourceRegistryPartEvent) ResourceRegistry(io.crnk.core.engine.registry.ResourceRegistry) ResourceRegistryPartAdapter(io.crnk.core.engine.registry.ResourceRegistryPartAdapter)

Aggregations

ResourceRegistry (io.crnk.core.engine.registry.ResourceRegistry)1 ResourceRegistryPartAdapter (io.crnk.core.engine.registry.ResourceRegistryPartAdapter)1 ResourceRegistryPartEvent (io.crnk.core.engine.registry.ResourceRegistryPartEvent)1