jodd-petite/src/main/java/jodd/petite/PetiteBeans.java
public void registerPetiteProvider(final String providerName, final Class type, final String staticMethodName, final Class[] arguments) {
		ClassDescriptor cd = ClassIntrospector.get().lookup(type);
		MethodDescriptor md = cd.getMethodDescriptor(staticMethodName, arguments, true);

		if (md == null) {
			throw new PetiteException("Provider method not found: " + staticMethodName);
		}

		ProviderDefinition providerDefinition = new ProviderDefinition(providerName, md.getMethod());

		providers.put(providerName, providerDefinition);
	}
public void registerPetiteProvider(final String providerName, final Class type, final String staticMethodName, final Class[] arguments) {
		ClassDescriptor cd = ClassIntrospector.get().lookup(type);
		MethodDescriptor md = cd.getMethodDescriptor(staticMethodName, arguments, true);

		if (md == null) {
			throw new PetiteException("Provider method not found: " + staticMethodName);
		}

		ProviderDefinition providerDefinition = new ProviderDefinition(providerName, md.getMethod());

		providers.put(providerName, providerDefinition);
	}
Registers static method provider.

@param providerName provider name
@param type class type
@param staticMethodName static method name
@param arguments method argument types