PdfPrep.com

What is the best way to modify a property of an asset resource in an OSGi service implementation?

A resource has already been resolved.

What is the best way to modify a property of an asset resource in an OSGi service implementation?
A . resource.setProperty(“isFlagged”, true).
B . Adapt resource to Node.class, then invoke node.setProperty(“isFlagged”, true).
C . item.setProperty(“isFlagged”, true).
D . Start a new AssetsManager object, then invoke setAssetProperty(resource, “isFlagged”, true).

Answer: C

Exit mobile version