jodd-petite/src/main/java/jodd/petite/proxetta/ProxettaAwarePetiteContainer.java
@SuppressWarnings("unchecked")
	@Override
	protected <T> BeanDefinition<T> createBeanDefinitionForRegistration(
			final String name,
			Class<T> type,
			final Scope scope,
			final WiringMode wiringMode,
			final Consumer<T> consumer)
	{
		if (proxetta != null) {
			final Class originalType = type;

			final ProxettaFactory builder = proxetta.proxy();

			builder.setTarget(type);

			type = builder.define();

			return new ProxettaBeanDefinition(
				name,
				type,
				scope,
				wiringMode,
				originalType,
				proxetta.getAspects(new ProxyAspect[0]),
				consumer);
		}

		return super.createBeanDefinitionForRegistration(name, type, scope, wiringMode, consumer);
	}
@SuppressWarnings("unchecked")
	@Override
	protected <T> BeanDefinition<T> createBeanDefinitionForRegistration(
			final String name,
			Class<T> type,
			final Scope scope,
			final WiringMode wiringMode,
			final Consumer<T> consumer)
	{
		if (proxetta != null) {
			final Class originalType = type;

			final ProxettaFactory builder = proxetta.proxy();

			builder.setTarget(type);

			type = builder.define();

			return new ProxettaBeanDefinition(
				name,
				type,
				scope,
				wiringMode,
				originalType,
				proxetta.getAspects(new ProxyAspect[0]),
				consumer);
		}

		return super.createBeanDefinitionForRegistration(name, type, scope, wiringMode, consumer);
	}
Applies proxetta on bean class before bean registration.