Package com.glines.socketio.util

Examples of com.glines.socketio.util.DefaultLoader


    public Iterable<Transport> discover() {
        List<Transport> transports = new LinkedList<Transport>();
        // discover transports lazily
        ServiceClassLoader<Transport> serviceClassLoader = ServiceClassLoader.load(
                Transport.class,
                new DefaultLoader(Thread.currentThread().getContextClassLoader()));
        Iterator<Class<Transport>> it = serviceClassLoader.iterator();
        while (it.hasNext()) {
            Class<Transport> transportClass;
            try {
                transportClass = it.next();
View Full Code Here


    @Override
    public void init() {
        handlerClasses.clear();
        ServiceClassLoader<TransportHandler> serviceClassLoader = ServiceClassLoader.load(
                TransportHandler.class,
                new DefaultLoader(Thread.currentThread().getContextClassLoader()));
        Iterator<Class<TransportHandler>> it = serviceClassLoader.iterator();
        while (it.hasNext()) {
            Class<TransportHandler> transportHandlerClass;
            try {
                transportHandlerClass = it.next();
View Full Code Here

TOP

Related Classes of com.glines.socketio.util.DefaultLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.