Examples of fromConfiguration()


Examples of org.codehaus.plexus.component.configurator.converters.ConfigurationConverter.fromConfiguration()

            cl = cr.getClassLoader();
        } else {
            cl = mojoExecution.getMojoDescriptor().getPluginDescriptor().getClassRealm();
        }
        ConfigurationConverter converter = converterLookup.lookupConverterForType(type);
        return type.cast(converter.fromConfiguration(converterLookup,child,type,
            // the implementation seems to expect the type of the bean for which the configuration is done
            // in this parameter, but we have no such type. So passing in a dummy
            Object.class,
            cl,
            expressionEvaluator));
View Full Code Here

Examples of org.codehaus.plexus.component.configurator.converters.ConfigurationConverter.fromConfiguration()

                }
            }

            ConfigurationConverter converter = converterLookup.lookupConverterForType( childType );

            Object object = converter.fromConfiguration( converterLookup, c, childType, baseType, classLoader,
                                                         expressionEvaluator, listener );

            Collection collection = (Collection) retValue;
            collection.add( object );
        }
View Full Code Here

Examples of org.codehaus.plexus.component.configurator.converters.ConfigurationConverter.fromConfiguration()

                childType = type.getComponentType();
            }

            ConfigurationConverter converter = converterLookup.lookupConverterForType( childType );

            Object object = converter.fromConfiguration( converterLookup, c, childType, baseType, classLoader,
                                                         expressionEvaluator, listener );

            values.add( object );
        }
View Full Code Here

Examples of org.codehaus.plexus.component.configurator.converters.ConfigurationConverter.fromConfiguration()

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

                Object value = converter.fromConfiguration(
                    lookup,
                    child,
                    toClass( expectedType ),
                    parentClass,
                    Thread.currentThread().getContextClassLoader(),
View Full Code Here

Examples of org.codehaus.plexus.component.configurator.converters.ConfigurationConverter.fromConfiguration()

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

                Object value = converter.fromConfiguration(lookup, child, toClass(expectedType), parentClass, Thread.currentThread().getContextClassLoader(), new DefaultExpressionEvaluator());
                return value;
            } catch (ComponentConfigurationException e) {
                throw new ConstructionException("Unable to convert configuration for property " + child.getName() + " to " + toClass(expectedType).getName());
            }
        }
View Full Code Here

Examples of org.codehaus.plexus.component.configurator.converters.ConfigurationConverter.fromConfiguration()

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

                Object value = converter.fromConfiguration(lookup, child, toClass(expectedType), parentClass, Thread.currentThread().getContextClassLoader(), new DefaultExpressionEvaluator());
                return value;
            } catch (ComponentConfigurationException e) {
                throw new ConstructionException("Unable to convert configuration for property " + child.getName() + " to " + toClass(expectedType).getName());
            }
        }
View Full Code Here

Examples of org.codehaus.plexus.component.configurator.converters.ConfigurationConverter.fromConfiguration()

                }
            }

            ConfigurationConverter converter = converterLookup.lookupConverterForType( childType );

            Object object = converter.fromConfiguration( converterLookup, c, childType, baseType, classLoader,
                                                         expressionEvaluator, listener );

            Collection collection = (Collection) retValue;
            collection.add( object );
        }
View Full Code Here

Examples of org.codehaus.plexus.component.configurator.converters.ConfigurationConverter.fromConfiguration()

                childType = type.getComponentType();
            }

            ConfigurationConverter converter = converterLookup.lookupConverterForType( childType );

            Object object = converter.fromConfiguration( converterLookup, c, childType, baseType, classLoader,
                                                         expressionEvaluator, listener );

            values.add( object );
        }
View Full Code Here

Examples of org.codehaus.plexus.component.configurator.converters.ConfigurationConverter.fromConfiguration()

                }
            }

            ConfigurationConverter converter = converterLookup.lookupConverterForType( childType );

            Object object = converter.fromConfiguration( converterLookup, c, childType, baseType, classLoader,
                                                         expressionEvaluator, listener );

            Collection collection = (Collection) retValue;
            collection.add( object );
        }
View Full Code Here

Examples of org.codehaus.plexus.component.configurator.converters.ConfigurationConverter.fromConfiguration()

                childType = type.getComponentType();
            }

            ConfigurationConverter converter = converterLookup.lookupConverterForType( childType );
           
            Object object = converter.fromConfiguration( converterLookup,
                                                         childConfiguration,
                                                         childType,
                                                         baseType,
                                                         classLoader,
                                                         expressionEvaluator,
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.