/** * Returns a ManagementResourceRegistration's Factory that will use the specified {@code processType} * to determine whether resource metrics are registered or not. * * If the {@code processType} id {@code null}, metrics are <em>always</em> registered. * * @param processType can be {@code null} * @return a Factory which creates ManagementResourceRegistration that * dynamically determine whether resource metrics are actually registered */ public static Factory forProcessType(ProcessType processType) { return new Factory(processType); }
/** * Returns a ManagementResourceRegistration's Factory that will use the specified {@code processType} * to determine whether resource metrics are registered or not. * * If the {@code processType} id {@code null}, metrics are <em>always</em> registered. * * @param processType can be {@code null} * @return a Factory which creates ManagementResourceRegistration that * dynamically determine whether resource metrics are actually registered */ public static Factory forProcessType(ProcessType processType) { return new Factory(processType); }