Search in sources :

Example 16 with IPluginProperties

use of org.jowidgets.plugin.api.IPluginProperties in project jo-client-platform by jo-source.

the class UpdaterServiceBuilderImpl method applyPlugins.

@SuppressWarnings({ "rawtypes", "unchecked" })
private void applyPlugins() {
    PluginProperties.builder();
    final IPluginProperties properties = createPluginProperties();
    for (final IUpdaterServiceBuilderPlugin plugin : PluginProvider.getPlugins(IUpdaterServiceBuilderPlugin.ID, properties)) {
        plugin.modify(this);
    }
}
Also used : IPluginProperties(org.jowidgets.plugin.api.IPluginProperties) IUpdaterServiceBuilderPlugin(org.jowidgets.cap.service.api.plugin.IUpdaterServiceBuilderPlugin)

Example 17 with IPluginProperties

use of org.jowidgets.plugin.api.IPluginProperties in project jo-client-platform by jo-source.

the class AbstractCreatorServiceBuilder method applyPlugins.

@SuppressWarnings({ "rawtypes", "unchecked" })
protected void applyPlugins() {
    PluginProperties.builder();
    final IPluginProperties properties = createPluginProperties();
    for (final ICreatorServiceBuilderPlugin plugin : PluginProvider.getPlugins(ICreatorServiceBuilderPlugin.ID, properties)) {
        plugin.modify(this);
    }
}
Also used : IPluginProperties(org.jowidgets.plugin.api.IPluginProperties) ICreatorServiceBuilderPlugin(org.jowidgets.cap.service.api.plugin.ICreatorServiceBuilderPlugin)

Example 18 with IPluginProperties

use of org.jowidgets.plugin.api.IPluginProperties in project jo-client-platform by jo-source.

the class DefaultCapServiceToolkit method invokeDtoConversionPlugin.

private <BEAN_TYPE> IBeanDtoFactory<BEAN_TYPE> invokeDtoConversionPlugin(final Class<? extends BEAN_TYPE> beanType, final Collection<String> propertyNames, IBeanDtoFactory<BEAN_TYPE> result) {
    final IPluginProperties properties = PluginProperties.create(IBeanDtoConversionProviderPlugin.BEAN_TYPE_PROPERTY_KEY, beanType);
    final List<IBeanDtoConversionProviderPlugin> plugins;
    plugins = PluginProvider.getPlugins(IBeanDtoConversionProviderPlugin.ID, properties);
    for (final IBeanDtoConversionProviderPlugin plugin : plugins) {
        result = plugin.dtoFactory(beanType, propertyNames, result);
    }
    return result;
}
Also used : IBeanDtoConversionProviderPlugin(org.jowidgets.cap.service.api.plugin.IBeanDtoConversionProviderPlugin) IPluginProperties(org.jowidgets.plugin.api.IPluginProperties)

Example 19 with IPluginProperties

use of org.jowidgets.plugin.api.IPluginProperties in project jo-client-platform by jo-source.

the class DefaultCapServiceToolkit method beanInitializer.

@Override
public <BEAN_TYPE> IBeanInitializer<BEAN_TYPE> beanInitializer(final Class<? extends BEAN_TYPE> beanType, final Collection<String> propertyNames) {
    Assert.paramNotNull(beanType, "beanType");
    IBeanInitializer<BEAN_TYPE> result = beanInitializerImpl(beanType, propertyNames);
    final IPluginProperties properties = PluginProperties.create(IBeanDtoConversionProviderPlugin.BEAN_TYPE_PROPERTY_KEY, beanType);
    final List<IBeanDtoConversionProviderPlugin> plugins;
    plugins = PluginProvider.getPlugins(IBeanDtoConversionProviderPlugin.ID, properties);
    for (final IBeanDtoConversionProviderPlugin plugin : plugins) {
        result = plugin.beanInitializer(beanType, propertyNames, result);
    }
    return result;
}
Also used : IBeanDtoConversionProviderPlugin(org.jowidgets.cap.service.api.plugin.IBeanDtoConversionProviderPlugin) IPluginProperties(org.jowidgets.plugin.api.IPluginProperties)

Example 20 with IPluginProperties

use of org.jowidgets.plugin.api.IPluginProperties in project jo-client-platform by jo-source.

the class DefaultCapServiceToolkit method beanModifier.

@Override
public <BEAN_TYPE> IBeanModifier<BEAN_TYPE> beanModifier(final Class<? extends BEAN_TYPE> beanType, final Collection<String> propertyNames) {
    IBeanModifier<BEAN_TYPE> result = beanModifierImpl(beanType, propertyNames);
    final IPluginProperties properties = PluginProperties.create(IBeanDtoConversionProviderPlugin.BEAN_TYPE_PROPERTY_KEY, beanType);
    final List<IBeanDtoConversionProviderPlugin> plugins;
    plugins = PluginProvider.getPlugins(IBeanDtoConversionProviderPlugin.ID, properties);
    for (final IBeanDtoConversionProviderPlugin plugin : plugins) {
        result = plugin.beanModifier(beanType, propertyNames, result);
    }
    return result;
}
Also used : IBeanDtoConversionProviderPlugin(org.jowidgets.cap.service.api.plugin.IBeanDtoConversionProviderPlugin) IPluginProperties(org.jowidgets.plugin.api.IPluginProperties)

Aggregations

IPluginProperties (org.jowidgets.plugin.api.IPluginProperties)34 IPluginPropertiesBuilder (org.jowidgets.plugin.api.IPluginPropertiesBuilder)21 IAction (org.jowidgets.api.command.IAction)6 IServiceActionDecoratorPlugin (org.jowidgets.cap.ui.api.plugin.IServiceActionDecoratorPlugin)6 IAttributePlugin (org.jowidgets.cap.ui.api.plugin.IAttributePlugin)5 IBeanModelBuilderPlugin (org.jowidgets.cap.ui.api.plugin.IBeanModelBuilderPlugin)5 LinkedList (java.util.LinkedList)3 IBeanDtoConversionProviderPlugin (org.jowidgets.cap.service.api.plugin.IBeanDtoConversionProviderPlugin)3 IAttribute (org.jowidgets.cap.ui.api.attribute.IAttribute)3 List (java.util.List)2 IContainer (org.jowidgets.api.widgets.IContainer)2 IBeanProxyLabelRenderer (org.jowidgets.cap.ui.api.bean.IBeanProxyLabelRenderer)2 IBeanProxyLabelRendererPlugin (org.jowidgets.cap.ui.api.plugin.IBeanProxyLabelRendererPlugin)2 IMenuModel (org.jowidgets.api.model.item.IMenuModel)1 IExecutorService (org.jowidgets.cap.common.api.service.IExecutorService)1 ICreatorServiceBuilderPlugin (org.jowidgets.cap.service.api.plugin.ICreatorServiceBuilderPlugin)1 IUpdaterServiceBuilderPlugin (org.jowidgets.cap.service.api.plugin.IUpdaterServiceBuilderPlugin)1 IBeanMessage (org.jowidgets.cap.ui.api.bean.IBeanMessage)1 IBeanFormPlugin (org.jowidgets.cap.ui.api.plugin.IBeanFormPlugin)1 IBeanProxyPlugin (org.jowidgets.cap.ui.api.plugin.IBeanProxyPlugin)1