/** * Load all implementations of a Service. * * @param <T> the type of the Service * @param type the type of the Service to load * @return all registered implementations of the Service */ public static <T> Iterable<T> load( Class<T> type ) { Iterable<T> loader; if ( null != (loader = java6Loader( type )) ) { return loader; } return Collections.emptyList(); }
/** * Load all implementations of a Service. * * @param <T> the type of the Service * @param type the type of the Service to load * @return all registered implementations of the Service */ public static <T> Iterable<T> load( Class<T> type ) { Iterable<T> loader; if ( null != (loader = java6Loader( type )) ) { return loader; } return Collections.emptyList(); }