Changeset 5304


Ignore:
Timestamp:
Aug 30, 2016, 10:55:54 PM (6 years ago)
Author:
Christian Schulte
Message:

o Updated to initialize volatile fields when an executor service will be used.

See #103

Location:
jomc-modlet/trunk/src/main/java/org/jomc/modlet
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • jomc-modlet/trunk/src/main/java/org/jomc/modlet/DefaultModelContext.java

    r5292 r5304  
    4949import java.util.Enumeration;
    5050import java.util.HashSet;
     51import java.util.LinkedList;
    5152import java.util.List;
    5253import java.util.Map;
     
    17241725            int count = 0;
    17251726            final long t0 = System.nanoTime();
    1726             final List<T> sortedClasspathServices = new ArrayList<T>();
     1727            final List<T> sortedClasspathServices = new LinkedList<T>();
    17271728
    17281729            while ( classpathServices.hasMoreElements() )
  • jomc-modlet/trunk/src/main/java/org/jomc/modlet/ModelContext.java

    r5292 r5304  
    614614    {
    615615        this.executorService = value;
     616
     617        if ( this.executorService != null )
     618        {
     619            this.getModletSchemaSystemId();
     620            this.getLogLevel();
     621
     622            if ( this instanceof DefaultModelContext )
     623            {
     624                ( (DefaultModelContext) this ).getProviderLocation();
     625                ( (DefaultModelContext) this ).getPlatformProviderLocation();
     626            }
     627        }
    616628    }
    617629
Note: See TracChangeset for help on using the changeset viewer.