ExposeModelResource(PathElement pathElement, ManagedAuditLogger auditLoggerInfo, JmxAuthorizer authorizer, SimpleAttributeDefinition domainName, SimpleAttributeDefinition...otherAttributes) { super(pathElement, JMXExtension.getResourceDescriptionResolver(CommonAttributes.EXPOSE_MODEL + "." + pathElement.getValue()), new ShowModelAdd(auditLoggerInfo, authorizer, domainName, otherAttributes), new ShowModelRemove(auditLoggerInfo, authorizer)); this.auditLoggerInfo = auditLoggerInfo; this.authorizer = authorizer; this.domainName = domainName; }
ExposeModelResource(String modelName, SimpleAttributeDefinition domainName, SimpleAttributeDefinition...otherAttributes) { super(PathElement.pathElement(CommonAttributes.EXPOSE_MODEL, modelName), JMXExtension.getResourceDescriptionResolver(CommonAttributes.EXPOSE_MODEL + "." + modelName), new ShowModelAdd(domainName, otherAttributes), ShowModelRemove.INSTANCE); this.domainName = domainName; }
ExposeModelResource(PathElement pathElement, ManagedAuditLogger auditLoggerInfo, JmxAuthorizer authorizer, Supplier<SecurityIdentity> securityIdentitySupplier, RuntimeHostControllerInfoAccessor hostInfoAccessor, SimpleAttributeDefinition domainName, SimpleAttributeDefinition...otherAttributes) { super(pathElement, JMXExtension.getResourceDescriptionResolver(CommonAttributes.EXPOSE_MODEL + "." + pathElement.getValue()), new ShowModelAdd(auditLoggerInfo, authorizer, securityIdentitySupplier, domainName, hostInfoAccessor, otherAttributes), new ShowModelRemove(auditLoggerInfo, authorizer, securityIdentitySupplier, hostInfoAccessor)); this.auditLoggerInfo = auditLoggerInfo; this.authorizer = authorizer; this.securityIdentitySupplier = securityIdentitySupplier; this.domainName = domainName; this.hostInfoAccessor = hostInfoAccessor; }