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);
}
}
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);
}
}
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;
}
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;
}
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;
}
Aggregations