use of org.glassfish.admin.rest.generator.ASMResourcesGenerator in project Payara by payara.
the class RestManagementResourceProvider method generateASM.
private void generateASM(ServiceLocator habitat) {
try {
Domain entity = habitat.getService(Domain.class);
Dom dom = Dom.unwrap(entity);
ResourcesGenerator resourcesGenerator = new ASMResourcesGenerator(habitat);
resourcesGenerator.generateSingle(dom.document.getRoot().model, dom.document);
resourcesGenerator.endGeneration();
} catch (Exception ex) {
RestLogging.restLogger.log(Level.SEVERE, null, ex);
}
}
Aggregations