Skip to content

Commit

Permalink
prepare release 02.00.00
Browse files Browse the repository at this point in the history
  • Loading branch information
svenruppert committed Dec 13, 2024
1 parent a993685 commit 02f03f2
Show file tree
Hide file tree
Showing 122 changed files with 251 additions and 250 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
import com.svenruppert.ddi.DI;
import com.svenruppert.ddi.ResponsibleFor;
import com.svenruppert.dependencies.core.logger.Logger;
import com.svenruppert.dependencies.core.logger.LoggingService;
import com.svenruppert.dependencies.core.logger.Logger;

/**
* one subtype - will return this class
Expand All @@ -61,7 +61,7 @@
*/
<span class="fc" id="L45">public class ImplementingClassResolver {</span>

<span class="fc" id="L47"> private static final LoggingService LOGGER = Logger.getLogger(ImplementingClassResolver.class);</span>
<span class="fc" id="L47"> private static final Logger LOGGER = LoggerFactory.getLogger(ImplementingClassResolver.class);</span>
<span class="fc" id="L48"> private static final ImplementingClassResolver INSTANCE = new ImplementingClassResolver();</span>


Expand Down Expand Up @@ -141,10 +141,10 @@
<span class="fc" id="L124"> final ClassResolver&lt;I&gt; classResolver = classResolverClass.getDeclaredConstructor().newInstance();</span>
<span class="fc" id="L125"> return classResolver.resolve(interf);</span>
<span class="fc" id="L126"> } catch (InstantiationException | IllegalAccessException | NoSuchMethodException e) {</span>
<span class="fc" id="L127"> LOGGER.warning(&quot;could not create instance &quot; , e);</span>
<span class="fc" id="L127"> LOGGER.warn(&quot;could not create instance &quot; , e);</span>
<span class="fc" id="L128"> throw new DDIModelException(interf + &quot; -- &quot; + e);</span>
<span class="nc" id="L129"> } catch (InvocationTargetException e) {</span>
<span class="nc" id="L130"> LOGGER.warning(&quot;could not create instance &quot; , e);</span>
<span class="nc" id="L130"> LOGGER.warn(&quot;could not create instance &quot; , e);</span>
<span class="nc" id="L131"> throw new DDIModelException(interf + &quot; -- &quot; + e);</span>
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
import com.svenruppert.ddi.producerresolver.ProducerResolverLocator;
import com.svenruppert.ddi.scopes.InjectionScopeManager;
import com.svenruppert.dependencies.core.logger.Logger;
import com.svenruppert.dependencies.core.logger.LoggingService;
import com.svenruppert.dependencies.core.logger.Logger;

<span class="fc" id="L35">public class InstanceCreator {</span>
<span class="fc" id="L36"> private static final LoggingService LOGGER = Logger.getLogger(InstanceCreator.class);</span>
<span class="fc" id="L36"> private static final Logger LOGGER = LoggerFactory.getLogger(InstanceCreator.class);</span>

public &lt;T&gt; T instantiate(Class&lt;T&gt; clazz) {

Expand Down Expand Up @@ -165,7 +165,7 @@
// return DI.activateDI(instance);
<span class="fc" id="L149"> return instance;</span>
<span class="fc" id="L150"> } catch (InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {</span>
<span class="fc" id="L151"> LOGGER.warning(&quot;could not create instance &quot; , e);</span>
<span class="fc" id="L151"> LOGGER.warn(&quot;could not create instance &quot; , e);</span>
<span class="fc" id="L152"> throw new DDIModelException(e);</span>
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@

import com.svenruppert.ddi.DI;
import com.svenruppert.dependencies.core.logger.Logger;
import com.svenruppert.dependencies.core.logger.LoggingService;
import com.svenruppert.dependencies.core.logger.Logger;


public class InjectionScopeManager {


<span class="fc" id="L38"> private static final LoggingService LOGGER = Logger.getLogger(InjectionScopeManager.class);</span>
<span class="fc" id="L38"> private static final Logger LOGGER = LoggerFactory.getLogger(InjectionScopeManager.class);</span>
<span class="fc" id="L39"> private static final Map&lt;String, String&gt; CLASS_NAME_2_SCOPENAME_MAP = new ConcurrentHashMap&lt;&gt;();</span>
<span class="fc" id="L40"> private static final Map&lt;String, InjectionScope&gt; INJECTION_SCOPE_MAP = new ConcurrentHashMap&lt;&gt;();</span>

Expand Down Expand Up @@ -100,7 +100,7 @@
try {
<span class="fc" id="L84"> return c.getDeclaredConstructor().newInstance();</span>
<span class="fc" id="L85"> } catch (InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {</span>
<span class="fc" id="L86"> LOGGER.warning(&quot;could not create an instance &quot; , e);</span>
<span class="fc" id="L86"> LOGGER.warn(&quot;could not create an instance &quot; , e);</span>
}
<span class="fc" id="L88"> return null;</span>
})
Expand All @@ -125,7 +125,7 @@
<span class="fc" id="L108"> return c.getDeclaredConstructor().newInstance();</span>
<span class="fc" id="L109"> } catch (InstantiationException | IllegalAccessException</span>
| NoSuchMethodException | InvocationTargetException e) {
<span class="fc" id="L111"> LOGGER.warning(&quot;could not create new instance &quot; , e);</span>
<span class="fc" id="L111"> LOGGER.warn(&quot;could not create new instance &quot; , e);</span>
}
<span class="fc" id="L113"> return null;</span>
})
Expand Down Expand Up @@ -185,7 +185,7 @@
<span class="fc" id="L168"> INJECTION_SCOPE_MAP.put(injectionScope.getScopeName() , injectionScope);</span>
<span class="nc" id="L169"> } catch (InstantiationException | IllegalAccessException</span>
| NoSuchMethodException | InvocationTargetException e) {
<span class="nc" id="L171"> LOGGER.warning(&quot;could not create an instance &quot; , e);</span>
<span class="nc" id="L171"> LOGGER.warn(&quot;could not create an instance &quot; , e);</span>
<span class="fc" id="L172"> }</span>
<span class="fc" id="L173"> }</span>

Expand Down
12 changes: 6 additions & 6 deletions _docu/20180319/jacoco/org.rapidpm.ddi/DI.java.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@
import com.svenruppert.ddi.reflections.ReflectionsModel;
import com.svenruppert.ddi.scopes.InjectionScopeManager;
import com.svenruppert.dependencies.core.logger.Logger;
import com.svenruppert.dependencies.core.logger.LoggingService;
import com.svenruppert.dependencies.core.logger.Logger;

public class DI {

<span class="fc" id="L52"> private static final LoggingService LOGGER = Logger.getLogger(DI.class);</span>
<span class="fc" id="L52"> private static final Logger LOGGER = LoggerFactory.getLogger(DI.class);</span>
public static final String ORG_RAPIDPM_DDI_PACKAGESFILE = &quot;org.rapidpm.ddi.packagesfile&quot;;
<span class="fc" id="L54"> private static ReflectionsModel reflectionsModel = new ReflectionsModel();</span>
<span class="fc" id="L55"> private static boolean bootstrapedNeeded = true;</span>
Expand Down Expand Up @@ -105,7 +105,7 @@
<span class="fc" id="L88"> try (InputStream is = new FileInputStream(path)) {</span>
<span class="fc" id="L89"> bootstrapFromResource(is);</span>
<span class="fc" id="L90"> } catch (IOException e1) {</span>
<span class="fc" id="L91"> LOGGER.warning(String.format(&quot;Error loading file &lt;%s&gt; &lt;%s&gt;&quot; , path , e.getMessage()));</span>
<span class="fc" id="L91"> LOGGER.warn(String.format(&quot;Error loading file &lt;%s&gt; &lt;%s&gt;&quot; , path , e.getMessage()));</span>
<span class="fc" id="L92"> throw new DDIModelException(&quot;Unable to load packages from file&quot; , e1);</span>
<span class="fc" id="L93"> }</span>
<span class="fc" id="L94"> }</span>
Expand All @@ -125,7 +125,7 @@
<span class="fc" id="L108"> reflectionsModel.rescann(line);</span>
}
<span class="nc" id="L110"> } catch (IOException e) {</span>
<span class="nc" id="L111"> LOGGER.warning(String.format(&quot;Error loading packages&quot;));</span>
<span class="nc" id="L111"> LOGGER.warn(String.format(&quot;Error loading packages&quot;));</span>
<span class="nc" id="L112"> throw new DDIModelException(&quot;Unable to load packages from file&quot; , e);</span>
<span class="fc" id="L113"> }</span>
<span class="fc" id="L114"> }</span>
Expand Down Expand Up @@ -256,7 +256,7 @@
<span class="fc" id="L239"> field.set(instance , target);</span>
<span class="fc" id="L240"> return null; // return nothing...</span>
<span class="nc" id="L241"> } catch (IllegalArgumentException | IllegalAccessException ex) {</span>
<span class="nc" id="L242"> LOGGER.warning(&quot;Cannot set field: &quot; , ex);</span>
<span class="nc" id="L242"> LOGGER.warn(&quot;Cannot set field: &quot; , ex);</span>
<span class="nc" id="L243"> throw new IllegalStateException(&quot;Cannot set field: &quot; + field , ex);</span>
} finally {
<span class="fc" id="L245"> field.setAccessible(wasAccessible);</span>
Expand Down Expand Up @@ -287,7 +287,7 @@
<span class="fc" id="L270"> m.invoke(instance);</span>
<span class="fc" id="L271"> m.setAccessible(accessible);</span>
<span class="nc" id="L272"> } catch (IllegalAccessException | InvocationTargetException e) {</span>
<span class="nc" id="L273"> LOGGER.warning(&quot;method could not invoked &quot; , e);</span>
<span class="nc" id="L273"> LOGGER.warn(&quot;method could not invoked &quot; , e);</span>
<span class="fc" id="L274"> }</span>
<span class="fc" id="L275"> });</span>
<span class="fc" id="L276"> }</span>
Expand Down
Loading

0 comments on commit 02f03f2

Please sign in to comment.