core/src/main/java/io/tracee/contextlogger/contextprovider/TypeToWrapper.java
public static Set<ImplicitContextData> getImplicitContextDataProviders() {
        final Set<ImplicitContextData> result = new HashSet<ImplicitContextData>();

        for (Class clazz : ContextProviderServiceLoader.getServiceLocator().getImplicitContextProvider()) {

            try {
                if (ImplicitContextData.class.isAssignableFrom(clazz)) {
                    ImplicitContextData instance = (ImplicitContextData)(clazz.newInstance());
                    result.add(instance);
                }
            }
            catch (Throwable e) {
                // to be ignored
            }

        }

        return result;
    }
public static Set<ImplicitContextData> getImplicitContextDataProviders() {
        final Set<ImplicitContextData> result = new HashSet<ImplicitContextData>();

        for (Class clazz : ContextProviderServiceLoader.getServiceLocator().getImplicitContextProvider()) {

            try {
                if (ImplicitContextData.class.isAssignableFrom(clazz)) {
                    ImplicitContextData instance = (ImplicitContextData)(clazz.newInstance());
                    result.add(instance);
                }
            }
            catch (Throwable e) {
                // to be ignored
            }

        }

        return result;
    }
public static Set < ImplicitContextData > getImplicitContextDataProviders ( ) { final Set < ImplicitContextData > result = new HashSet < ImplicitContextData > ( ) ; for ( Class clazz : ContextProviderServiceLoader . getServiceLocator ( ) . getImplicitContextProvider ( ) ) { try { if ( ImplicitContextData . class . isAssignableFrom ( clazz ) ) { ImplicitContextData instance = ( ImplicitContextData ) ( clazz . newInstance ( ) ) ; result . add ( instance ) ; } } catch ( Throwable e ) { // to be ignored } } return result ; }
Generic function to get a implicit data provider classes from resource files.

@return a set that contains all context provider type the were found
Generic function to get a implicit data provider classes from resource files .