use of org.jboss.weld.bootstrap.spi.helpers.MetadataImpl in project Payara by payara.
the class WeldDeployer method createProbeExtension.
private Metadata<Extension> createProbeExtension() {
ProbeExtension probeExtension;
Class<ProbeExtension> probeExtensionClass = ProbeExtension.class;
try {
if (System.getSecurityManager() != null) {
probeExtension = AccessController.doPrivileged(NewInstanceAction.of(probeExtensionClass));
} else {
probeExtension = probeExtensionClass.newInstance();
}
} catch (Exception e) {
throw new WeldException(e.getCause());
}
return new MetadataImpl<Extension>(probeExtension, "N/A");
}
Aggregations