Examples of BindInfoDefineManager


Examples of net.hasor.core.BindInfoDefineManager

*/
public abstract class AbstractAppContext implements AppContext {
    public Class<?> getBeanType(String bindID) {
        Hasor.assertIsNotNull(bindID, "bindID is null.");
        //
        BindInfoDefineManager defineManager = this.getBindInfoFactory().getManager();
        AbstractBindInfoProviderAdapter<?> bindInfo = defineManager.getBindInfoByID(bindID);
        if (bindInfo != null) {
            return bindInfo.getBindType();
        }
        return null;
    }
View Full Code Here

Examples of net.hasor.core.BindInfoDefineManager

        return null;
    }
    public boolean containsBindID(String bindID) {
        Hasor.assertIsNotNull(bindID, "bindID is null.");
        //
        BindInfoDefineManager defineManager = this.getBindInfoFactory().getManager();
        AbstractBindInfoProviderAdapter<?> bindInfo = defineManager.getBindInfoByID(bindID);
        return bindInfo != null;
    }
View Full Code Here

Examples of net.hasor.core.BindInfoDefineManager

        BindInfoDefineManager defineManager = this.getBindInfoFactory().getManager();
        AbstractBindInfoProviderAdapter<?> bindInfo = defineManager.getBindInfoByID(bindID);
        return bindInfo != null;
    }
    public String[] getBindIDs() {
        BindInfoDefineManager defineManager = this.getBindInfoFactory().getManager();
        Iterator<? extends AbstractBindInfoProviderAdapter<?>> adapterList = defineManager.getBindInfoIterator();
        if (adapterList == null || adapterList.hasNext() == false) {
            return ArrayUtils.EMPTY_STRING_ARRAY;
        }
        List<String> names = new ArrayList<String>();
        while (adapterList.hasNext()) {
View Full Code Here

Examples of net.hasor.core.BindInfoDefineManager

            }
        }
        return names.toArray(new String[names.size()]);
    }
    public <T> BindInfo<T> getBindInfo(String bindID) {
        BindInfoDefineManager defineManager = this.getBindInfoFactory().getManager();
        return defineManager.getBindInfoByID(bindID);
    }
View Full Code Here

Examples of net.hasor.core.BindInfoDefineManager

        return defineManager.getBindInfoByID(bindID);
    }
    public <T> T getInstance(String bindID) {
        Hasor.assertIsNotNull(bindID, "bindID is null.");
        //
        BindInfoDefineManager defineManager = this.getBindInfoFactory().getManager();
        AbstractBindInfoProviderAdapter<T> bindInfo = defineManager.getBindInfoByID(bindID);
        if (bindInfo != null) {
            return this.getInstance(bindInfo);
        }
        return null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.