Examples of ConfigurationObject


Examples of org.wso2.carbon.mediation.dependency.mgt.ConfigurationObject

        if (sequence.getKey() != null) {
            // If this is a sequence which simply refers to another sequence then
            // the provider sequence acts as the only dependency
            Value key = sequence.getKey();
            if (key != null) {
                addProvider(new ConfigurationObject(ConfigurationObject.TYPE_SEQUENCE,
                                                    key.getKeyValue()), providers);
            }
            return providers;
        } else {
            // Otherwise we need to resolve child mediators
View Full Code Here

Examples of org.wso2.carbon.mediation.dependency.mgt.ConfigurationObject

                    cacheMediator.getOnCacheHitSequence());
            for (ConfigurationObject o : sequenceProviders) {
                addProvider(o, providers);
            }
        } else if (cacheMediator.getOnCacheHitRef() != null) {
            addProvider(new ConfigurationObject(ConfigurationObject.TYPE_SEQUENCE,
                    cacheMediator.getOnCacheHitRef()), providers);
        }
        return providers;
    }
View Full Code Here

Examples of org.wso2.carbon.mediation.dependency.mgt.ConfigurationObject

                    throttleMediator.getOnAcceptMediator());
            for (ConfigurationObject o : sequenceProviders) {
                addProvider(o, providers);
            }
        } else if (throttleMediator.getOnAcceptSeqKey() != null) {
            addProvider(new ConfigurationObject(ConfigurationObject.TYPE_SEQUENCE,
                    throttleMediator.getOnAcceptSeqKey()), providers);
        }

        if (throttleMediator.getOnRejectMediator() != null) {
            DependencyResolver resolver = DependencyResolverFactory.getInstance().
                    getResolver(throttleMediator.getOnRejectMediator());
            List<ConfigurationObject> sequenceProviders = resolver.resolve(
                    throttleMediator.getOnRejectMediator());
            for (ConfigurationObject o : sequenceProviders) {
                addProvider(o, providers);
            }
        } else if (throttleMediator.getOnRejectSeqKey() != null) {
            addProvider(new ConfigurationObject(ConfigurationObject.TYPE_SEQUENCE,
                    throttleMediator.getOnRejectSeqKey()), providers);
        }

        return providers;
    }
View Full Code Here

Examples of org.wso2.carbon.mediation.dependency.mgt.ConfigurationObject

        List<ConfigurationObject> providers = new ArrayList<ConfigurationObject>();
        XSLTMediator xsltMediator = (XSLTMediator) m;
        Value xsltKey = xsltMediator.getXsltKey();
        if (xsltKey.getKeyValue() != null) {
            addProvider(new ConfigurationObject(ConfigurationObject.TYPE_ENTRY,
                    xsltKey.getKeyValue()),
                    providers);
        }

        if (xsltMediator.getResourceMap() != null) {
            ResourceMap resources = xsltMediator.getResourceMap();
            for (String key : resources.getResources().values()) {
                addProvider(new ConfigurationObject(ConfigurationObject.TYPE_ENTRY, key),
                        providers);
            }
        }
       
        return providers;
View Full Code Here

Examples of org.wso2.carbon.mediation.dependency.mgt.ConfigurationObject

        }

        List<ConfigurationObject> providers = new ArrayList<ConfigurationObject>();
        SpringMediator springMediator  = (SpringMediator) m;
        if (springMediator.getConfigKey() != null) {
            addProvider(new ConfigurationObject(ConfigurationObject.TYPE_ENTRY,
                    springMediator.getConfigKey()), providers);
        }
        return providers;
    }
View Full Code Here

Examples of org.wso2.carbon.mediation.dependency.mgt.ConfigurationObject

        ValidateMediator validateMediator = (ValidateMediator) m;
        List<Value> schemaKeys = validateMediator.getSchemaKeys();
        List<ConfigurationObject> providers = new ArrayList<ConfigurationObject>();
        for (Value key : schemaKeys) {
            if(key.getKeyValue() != null){
                addProvider(new ConfigurationObject(ConfigurationObject.TYPE_ENTRY, key.getKeyValue()), providers);
            }

        }

        resolveListMediator(validateMediator, providers);
View Full Code Here

Examples of org.wso2.carbon.mediation.dependency.mgt.ConfigurationObject

        List<ConfigurationObject> providers = new ArrayList<ConfigurationObject>();
        XQueryMediator xqueryMediator = (XQueryMediator) m;
        Value key = xqueryMediator.getQueryKey();
        if (key.getKeyValue() != null) {
            addProvider(new ConfigurationObject(ConfigurationObject.TYPE_ENTRY,
                                                key.getKeyValue()), providers);
        }

        List<MediatorVariable> variables = xqueryMediator.getVariables();
        if (variables != null) {
            for (MediatorVariable var : variables) {
                if (var instanceof MediatorCustomVariable) {
                    String varKey = ((MediatorCustomVariable) var).getRegKey();
                    if (varKey != null) {
                        addProvider(new ConfigurationObject(ConfigurationObject.TYPE_ENTRY,
                                varKey), providers);   
                    }
                }
            }
        }
View Full Code Here

Examples of org.wso2.carbon.mediation.dependency.mgt.ConfigurationObject

        SendMediator sendMediator = (SendMediator) m;
        Endpoint endpoint = sendMediator.getEndpoint();
        if (endpoint instanceof IndirectEndpoint) {
            IndirectEndpoint indirect = (IndirectEndpoint) endpoint;
            List<ConfigurationObject> providers = new ArrayList<ConfigurationObject>();
            providers.add(new ConfigurationObject(ConfigurationObject.TYPE_ENDPOINT,
                    indirect.getKey()));
            return providers;
        }
        return null;
    }
View Full Code Here

Examples of org.wso2.carbon.mediation.dependency.mgt.ConfigurationObject

        List<ConfigurationObject> providers = new ArrayList<ConfigurationObject>();
        ScriptMediator scriptMediator  = (ScriptMediator) m;

        Value key = scriptMediator.getKey();
        if (key != null && key.getKeyValue() != null) {
            addProvider(new ConfigurationObject(ConfigurationObject.TYPE_ENTRY,
                    key.getKeyValue()), providers);
        }
        return providers;
    }
View Full Code Here

Examples of org.wso2.carbon.mediation.dependency.mgt.ConfigurationObject

        CalloutMediator calloutMediator = (CalloutMediator) m;
        List<ConfigurationObject> providers = new ArrayList<ConfigurationObject>();
        String reqKey = calloutMediator.getRequestKey();
        if (reqKey != null) {
            addProvider(new ConfigurationObject(ConfigurationObject.TYPE_ENTRY, reqKey),
                    providers);
        }

        String targetKey = calloutMediator.getTargetKey();
        if (targetKey != null) {
            addProvider(new ConfigurationObject(ConfigurationObject.TYPE_ENTRY, targetKey),
                    providers);
        }

        return providers;
    }
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.