A client has a requirement to get the location of stores based on the zip code authored in the component dialog. Location needs to be pulled from an external API using OSGi services.
Which OSGi Service code snippet should be used to represent the requirement?
A)
@OSGIService(component = Service.class)
public class ServiceImpl implements Service {
@Override
public List
List
// Create an HTTP client
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
// Processing logic to get all the locations from external api
} catch (IOException e) {
}
return storeLocations;
}
}
B)
@Component(service = Service.class)
public class ServiceImpl implements Service {
@Override
public List
List
// Create an HTTP client
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
// Processing logic to get all the locations from external api
} catch (IOException e) {
}
return storeLocations;
}
}
C)
@Service(service = Component.class)
public class ServiceImpl implements Service {
@Override
public List
List
// Create an HTTP client
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
// Processing logic to get all the locations from external api
} catch (IOException e) {
}
return storeLocations;
}
}
A developer is tasked with displaying the results from an external API call using Server Side Rendering in Adobe Experience Manager.
Which actions would the developer take to complete this task?
A developer created an editable template named home-template in AEM application 'wknd'.
What is the internal structure created for this template in the CRX repository?
A.
B.
C.
D.
A developer needs to use the mode in Template Editor which allows template authors to define grid settings for different devices.
Which mode should the developer use?
A developer is using the Oak query engine.
Which query language is recommended?
Rosalia
3 days agoGolda
4 days agoTenesha
5 days ago