Hi All,
can someone help me to convert the set of felix @property annotation to OSGI annotations. If it's a single @property I can directly use it in @component. If it's a multiple @property then what should I do?Need help on the highlighted portion. Appreciate your help.
@Component(metatype = true, label = "Day CQ Commerce Hybris Catalog Importer")
@Service(value = {DefaultHybrisImporter.class, HybrisImporter.class})
@Properties(value = {@Property(name = "commerceProvider", value = HybrisConstants.COMMERCE_PROVIDER,
propertyPrivate = true)})
public class DefaultHybrisImporter extends AbstractProductImporter
implements HybrisImporter, ProductImporter {
private static final Logger LOG = LoggerFactory.getLogger(DefaultHybrisImporter.class);
protected static final int DEFAULT_PAGE_SIZE = Integer.MAX_VALUE;
private static final int FIRST_CURRENT_PAGE = 0;
private static final int SECOND_CURRENT_PAGE = 1;
private static final int DEFAULT_IMPORTER_CONNECTION_THREAD_POOL_SIZE = 2;
protected static final boolean DEFAULT_PRODUCT_REMOVAL_ENABLED = true;
protected static final boolean DEFAULT_PRODUCT_ASSET_REMOVAL_ENABLED = true;
protected static final String DEFAULT_PRODUCTS_PATH = "/etc/commerce/products";
protected static final String DEFAULT_EXPORT_FIELDS = "DEFAULT";
private static final String PRODUCTS_TEMP = "/tmp/commerce/sampleproducts";
// 2012-03-28T07:50:49+00:00
public static final String HYBRIS_DATE_TIME_PATTERN = "yyyy-MM-dd'T'HH:mm:ssZ";
@Property(value = DefaultHybrisImporter.DEFAULT_EXPORT_FIELDS)
public static final String EXPORT_FIELDS = "hybris.import.export.fields";
@Property(value = DefaultHybrisImporter.DEFAULT_PRODUCTS_PATH)
public static final String PRODUCTS_PATH = "hybris.import.products.path";
@Property(longValue = DEFAULT_PAGE_SIZE)
public static final String PAGE_SIZE = "hybris.import.pagesize";
@Property(intValue = DEFAULT_IMPORTER_CONNECTION_THREAD_POOL_SIZE)
public static final String CONNECTION_THREAD_POOL_SIZE =
"sample.hybris.connection.threadpoolsize";
@Property(boolValue = DEFAULT_PRODUCT_REMOVAL_ENABLED)
public static final String PRODUCT_REMOVAL_ENABLED = "hybris.import.product.removal.enabled";
@Property(boolValue = DEFAULT_PRODUCT_ASSET_REMOVAL_ENABLED)
public static final String PRODUCT_ASSET_REMOVAL_ENABLED =
"hybris.import.product.asset.removal.enabled";
@Property(value = {"Device", "ServiceAddOn", "SampleDeviceColorVariant",
"SampleDeviceColorMemoryVariant", "ServicePlan"})
public static final String PRODUCT_TYPES_TO_IMPORT = "hybris.import.product.types";
Thanks,
Vijay
Feike Visser smacdonald2008 Ratna Kumar Arun Patidar dgordon86
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
Please check similar post at convert felix @properties & @property to OSGI annotations
Thanks
Arun
Views
Replies
Total Likes
Hi,
Please check similar post at convert felix @properties & @property to OSGI annotations
Thanks
Arun
Views
Replies
Total Likes