Examples of ConverterLookup


Examples of org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup

            }
        }

        private ConverterLookup createConverterLookup() {
            ClassRealm realm = (ClassRealm) Thread.currentThread().getContextClassLoader();
            ConverterLookup lookup = new DefaultConverterLookup();
            lookup.registerConverter( new ClassRealmConverter(realm) );
            return lookup;
        }
View Full Code Here

Examples of org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup

            mapOrientedComponent.addComponentRequirement(requirement, value);
        }

        MapConverter converter = new MapConverter();
        ConverterLookup converterLookup = new DefaultConverterLookup();
        DefaultExpressionEvaluator expressionEvaluator = new DefaultExpressionEvaluator();
        PlexusConfiguration configuration = container.getConfigurationSource().getConfiguration( descriptor );

        if ( configuration != null )
        {
View Full Code Here

Examples of org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup

            this.child = child;
        }

        public boolean canCreate(Type type) {
            try {
                ConverterLookup lookup = createConverterLookup();
                lookup.lookupConverterForType(toClass(type));
                return true;
            } catch (ComponentConfigurationException e) {
                return false;
            }
        }
View Full Code Here

Examples of org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup

        }

        @Override
        protected Object internalCreate(Type expectedType, boolean lazyRefAllowed) throws ConstructionException {
            try {
                ConverterLookup lookup = createConverterLookup();
                ConfigurationConverter converter = lookup.lookupConverterForType(toClass(expectedType));

                // todo this will not work for static factories
                ObjectRecipe caller = (ObjectRecipe) RecipeHelper.getCaller();
                Class parentClass = toClass(caller.getType());
View Full Code Here

Examples of org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup

            }
        }

        private ConverterLookup createConverterLookup() {
            ClassRealm realm = (ClassRealm) Thread.currentThread().getContextClassLoader();
            ConverterLookup lookup = new DefaultConverterLookup();
            lookup.registerConverter( new ClassRealmConverter(realm) );
            return lookup;
        }
View Full Code Here

Examples of org.compass.core.converter.ConverterLookup

            Map<String, Converter> customConverters,
            List defaultExcludedProperties,
            Map defaultFormats) {
        // Code copied from Compass, since we don't want to initialise/build
        // a Compass instance just to get the converter lookup.
        ConverterLookup converterLookup = new DefaultConverterLookup();
        converterLookup.configure(configuration.getSettings().copy());
        for (String converterName : customConverters.keySet()) {
            converterLookup.registerConverter(converterName, customConverters.get(converterName));
        }

        DefaultCompassConverterLookupHelper converterLookupHelper = new DefaultCompassConverterLookupHelper();
        converterLookupHelper.setConverterLookup(converterLookup);
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.