use of org.jowidgets.cap.service.api.plugin.IBeanDtoConversionProviderPlugin 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.cap.service.api.plugin.IBeanDtoConversionProviderPlugin 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.cap.service.api.plugin.IBeanDtoConversionProviderPlugin 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