Is there a recommended way to add a custom library to a provider or should I just added as a module in my wildfly?

Thanks