Examples of lookupConverterForType()


Examples of cucumber.deps.com.thoughtworks.xstream.converters.ConverterLookup.lookupConverterForType()

                Class clazz = (Class) type;
                if (clazz.isEnum()) {
                    return new EnumConverter(locale, clazz);
                }
                ConverterLookup converterLookup = getConverterLookup();
                Converter converter = converterLookup.lookupConverterForType((Class) type);
                return converter instanceof SingleValueConverter ? (SingleValueConverter) converter : null;
            } else {
                return null;
            }
        }
View Full Code Here

Examples of net.buffalo.protocal.converters.DefaultConverterLookup.lookupConverterForType()

   
  }
 
  public void testConverterLookupContainsSqlDateConverter() throws Exception {
    DefaultConverterLookup converterLookup = new DefaultConverterLookup();
    assertEquals(SqlDateConverter.class, converterLookup.lookupConverterForType(java.sql.Date.class).getClass());
   
  }
}
View Full Code Here

Examples of org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup.lookupConverterForType()

        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.lookupConverterForType()

        {
            setComponentStackProperty( child.getName() );
            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.lookupConverterForType()

        }

        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.lookupConverterForType()

        @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.lookupConverterForType()

        }

        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.lookupConverterForType()

        @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
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.