package net.kiberion.psychobear.spring;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import net.kiberion.psychobear.model.global.AcademagiaTrait;
import net.kiberion.swampmachine.blueprints.common.loaders.TraitLoader;
import net.kiberion.swampmachine.blueprints.common.registries.TraitRegistry;
import net.kiberion.swampmachine.loaders.AbstractLoader;
import net.kiberion.swampmachine.spring.CoreConfiguration;

@Configuration
public class PsychoBearLoaderConfiguration extends CoreConfiguration {

    @Bean
    public TraitRegistry<AcademagiaTrait> traitRegistry () {
        return new TraitRegistry<>();
    }
    
    @Bean
    public AbstractLoader traitLoader() {
        return new TraitLoader<> (AcademagiaTrait.class);
    }
   
}

@@ -84,725 +84,170 @@
 ion.
-Bean;%0Aimport org.springframework.context.annotation.Configuration;%0A%0Aimport net.kiberion.psychobear.model.global.AcademagiaTrait;%0Aimport net.kiberion.swampmachine.blueprints.common.loaders.TraitLoader;%0Aimport net.kiberion.swampmachine.blueprints.common.registries.TraitRegistry;%0Aimport net.kiberion.swampmachine.loaders.AbstractLoader;%0Aimport net.kiberion.swampmachine.spring.CoreConfiguration;%0A%0A@Configuration%0Apublic class PsychoBearLoaderConfiguration extends CoreConfiguration %7B%0A%0A    @Bean%0A    public TraitRegistry%3CAcademagiaTrait%3E traitRegistry () %7B%0A        return new TraitRegistry%3C%3E();%0A    %7D%0A    %0A    @Bean%0A    public AbstractLoader traitLoader() %7B%0A        return new TraitLoader%3C%3E (AcademagiaTrait.class);%0A    %7D
+Configuration;%0A%0Aimport net.kiberion.swampmachine.spring.CoreConfiguration;%0A%0A@Configuration%0Apublic class PsychoBearLoaderConfiguration extends CoreConfiguration %7B%0A
 %0A   

Clean up.