Examples of provide()


Examples of org.auraframework.def.ComponentConfigProvider.provide()

                            Class<?> providerClass = Class.forName(mockProvider);
                            if(!ComponentConfigProvider.class.isAssignableFrom(providerClass)){
                                throw new InvalidDefinitionException("Class specified as configProvider should implement ComponentConfigProvider", getLocation());
                            }
                            ComponentConfigProvider provider = (ComponentConfigProvider)providerClass.newInstance();
                            config = provider.provide();
                        }catch(ClassNotFoundException e){
                            throw new InvalidDefinitionException("Could not locate class specified as configProvider:"+configProvider, getLocation());
                        }catch(IllegalAccessException e){
                            throw new InvalidDefinitionException("Constructor is inaccessible for "+ configProvider, getLocation());
                        }catch (InstantiationException ie) {
View Full Code Here

Examples of org.auraframework.def.ProviderDef.provide()

                            descriptor), root.getLocation());
                    }
                }

                if (providerDef.isLocal()) {
                    ComponentConfig config = providerDef.provide(intfDescriptor);
                    if (config != null) {
                        ProviderDef remoteProviderDef = root.getProviderDef();
                        if (remoteProviderDef == null || remoteProviderDef.isLocal()) {
                            hasLocalDependencies = true;
                        }
View Full Code Here

Examples of org.eclipse.sapphire.services.ValueImageService.provide()

                                imageProvider = new ImageProvider()
                                {
                                    @Override
                                    public ImageData image()
                                    {
                                        return valueImageService.provide( value.text() );
                                    }
                                };
                            }
                        }
                       
View Full Code Here

Examples of org.fenixedu.academic.ui.renderers.providers.ExecutionDegreesWithDissertationByExecutionYearProvider.provide()

    private ActionForward forwardToListThesisCreationPeriodsPage(ActionMapping mapping, HttpServletRequest request,
            final ThesisCreationPeriodFactoryExecutor thesisCreationPeriodFactoryExecutor) {
        if (thesisCreationPeriodFactoryExecutor.getExecutionDegree() == null) {
            final ExecutionDegreesWithDissertationByExecutionYearProvider provider =
                    new ExecutionDegreesWithDissertationByExecutionYearProvider();
            request.setAttribute("executionDegrees", provider.provide(thesisCreationPeriodFactoryExecutor, null));
        }

        return mapping.findForward("list-thesis-creation-periods");
    }
View Full Code Here

Examples of org.glassfish.jersey.message.internal.SaxParserFactoryInjectionProvider.provide()

        Provider<SAXParserFactory> saxParserFactoryProvider = new Provider<SAXParserFactory>() {
            final SaxParserFactoryInjectionProvider spf = new SaxParserFactoryInjectionProvider(new CommonConfig(RuntimeType.SERVER, ComponentBag.INCLUDE_ALL));

            @Override
            public SAXParserFactory get() {
                return spf.provide();
            }
        };

        JaxbStringReaderProvider.RootElementProvider provider = new JaxbStringReaderProvider.RootElementProvider(saxParserFactoryProvider, new Providers() {
            @Override
View Full Code Here

Examples of org.jboss.arquillian.persistence.DataSeedStrategy.provide()

   private DatabaseOperation seedingStrategy()
   {
      final DBUnitConfiguration dbUnitConfiguration = dbunitConfigurationInstance.get();
      final DataSeedStrategy dataSeedStrategy = persistenceExtensionFeatureResolverInstance.get().getDataSeedStrategy();
      final boolean useIdentityInsert = dbUnitConfiguration.isUseIdentityInsert();
      return dataSeedStrategy.provide(new DBUnitDataSeedStrategyProvider(useIdentityInsert));
   }

   private void cleanDatabase(CleanupStrategy cleanupStrategy)
   {
      final CleanupStrategyExecutor cleanupStrategyExecutor = cleanupStrategy.provide(new CleanupStrategyProvider(
View Full Code Here

Examples of org.jboss.arquillian.persistence.spi.dbunit.filter.TableFilterProvider.provide()

      final DatabaseConnection connection = databaseConnection.get();
      IDataSet initialDataSet = mergeDataSets(dataSetRegister.get().getInitial());
      if (dbunitConfigurationInstance.get().isFilterTables())
      {
         final TableFilterProvider sequenceFilterProvider = new TableFilterResolver(dbunitConfigurationInstance.get()).resolve();
         final ITableFilter databaseSequenceFilter = sequenceFilterProvider.provide(connection, initialDataSet.getTableNames());
         initialDataSet = new FilteredDataSet(databaseSequenceFilter, initialDataSet);
      }
      seedingStrategy().execute(connection, initialDataSet);
   }
View Full Code Here

Examples of org.jboss.wsf.spi.tools.WSContractProvider.provide()

      if (! quiet)
         gen.setMessageStream(System.out);
     
      try
      {
         gen.provide(endpoint);
         return 0;
      }
      catch (Throwable t)
      {
         System.err.println("Error: Could not generate. (use --show-traces to see full traces)");
View Full Code Here

Examples of org.jboss.wsf.spi.tools.WSContractProvider.provide()

         if (sourcedestdir != null)
            gen.setSourceDirectory(sourcedestdir);

         log("Generating from endpoint: " + sei, Project.MSG_INFO);
        
         gen.provide(sei);
      }
      finally
      {
         Thread.currentThread().setContextClassLoader(prevCL);
      }
View Full Code Here

Examples of org.jboss.wsf.spi.tools.WSContractProvider.provide()

      if (! quiet)
         gen.setMessageStream(System.out);
     
      try
      {
         gen.provide(endpoint);
         return 0;
      }
      catch (Throwable t)
      {
         System.err.println("Error: Could not generate. (use --show-traces to see full traces)");
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.