Package org.tubo.configuration.def

Examples of org.tubo.configuration.def.Configuration


        // create spring resource manager
        SpringResourceManagerImpl rm = null;
        try {
            //
            // get configuration
            Configuration config = manager.getConfiguration();
            //
            // crate a new Resurce Manager based on Spring implementation
            rm = SpringResourceManagerImpl.newInstance(config);
        } catch (TuboException e) {
            throw new TuboKernelException("ResourceManager can't be created",e);
View Full Code Here


    public static String META_CALL_METHOD_RULE_TAG = ROOT_TAG+"/digester-rule-set/call-method-rule";
    public static String META_CALL_PARAM_RULE_TAG = ROOT_TAG+"/digester-rule-set/call-param-rule";


    protected Configuration createEmptyConfigurationObject() {
        Configuration config = new DigesterConfigurationImpl();
        return config;
    }
View Full Code Here

     * @param resource Configuration Resource
     * @return A new configuration
     * @throws TuboConfigurationException If something occurs.
     */
    public Configuration load(String resource) throws TuboConfigurationException {
        Configuration config = createEmptyConfigurationObject();
        config = append(resource,config);
        return config;
    }
View Full Code Here

    /**
     *
     * @return
     */
    protected Configuration createEmptyConfigurationObject() {
        Configuration config = new BaseConfigurationImpl();
        return config;
    }
View Full Code Here

    public void setResourceManager(ResourceManager resourceManager) throws TuboException {
        this.resourceManager = resourceManager;
        //
        // get configuration
        Configuration configuration = resourceManager.getConfiguration();
        //
        // get exception definitions
        Map exceptionDefs = configuration.getExceptionDefs();
        //
        // loop exception defs and create rank list
        for (Iterator it=exceptionDefs.values().iterator(); it.hasNext();) {
            //
            // get def
            ExceptionDef def = (ExceptionDef)it.next();
            //
            // get exception ranks
            List _ranks = def.getRankErrorCodesList();
            //
            // loop ranks and add pair [rank,exception_id] to global rank list
            for (Iterator rit=_ranks.iterator(); rit.hasNext(); ) {
                //
                // get rank
                int[] arank = (int[])rit.next();
                //
                // create Rank
                Rank rank = new Rank(arank[1],arank[0],def.getId());
                //
                // add rank to list
                addRank(rank);
            }
        }
        //
        // get messages properties
        List messageResources = configuration.getMessageResources();
        //
        // create resource bundles array
        bundles = new ResourceBundle[messageResources.size()];
        //
        // loop message resource creating bundles
View Full Code Here

TOP

Related Classes of org.tubo.configuration.def.Configuration

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.