Examples of ServiceConfiguration


Examples of es.udc.mypersonalizer.kernel.model.repository.interfaces.ServiceConfiguration

            /* Get context relative path from service configuration */       
            String serviceIdentifier =
                servicePropertyKey.getServiceIdentifier();

            ServiceConfiguration serviceConfiguration =
                ServiceConfigurationRegistrySingleton.getInstance().
                    getServiceConfiguration(serviceIdentifier);

            String contextRelativePath =
                (String) serviceConfiguration.getParameters().get(
                    CONTEXT_RELATIVE_PATH_CONFIG_PARAMETER);
       
            /* Create parameters Map */
            Map serviceParameters = getServiceParameters(
                request, response, serviceProperty, buttons);
View Full Code Here

Examples of net.rim.blackberry.api.mail.ServiceConfiguration

                            {
                              String name = record.getName();
                          
                              if (name.equalsIgnoreCase(emailService))
                              {
                                    ServiceConfiguration sc = new ServiceConfiguration(record);
                             
                                    if (sc != null)
                                    {
                                        Session session = Session.getInstance(sc);
                                       
View Full Code Here

Examples of net.rim.blackberry.api.mail.ServiceConfiguration

            }
            _serviceConfig = _store.getServiceConfiguration();

        } else {
            try {
                _serviceConfig = new ServiceConfiguration( s.getUid(), s.getCid() );
                _store = Session.getInstance( _serviceConfig ).getStore();
            } catch( NoSuchServiceException e ) {
                _store = Session.getDefaultInstance().getStore();
                _serviceConfig = _store.getServiceConfiguration();
            }
View Full Code Here

Examples of net.rim.blackberry.api.mail.ServiceConfiguration

        if( args.length > 2 ) {
            s = (ServiceObject) args[ 2 ];
        }

        Store store = null;
        ServiceConfiguration serviceConfig = null;
        if( s == null ) {
            store = Session.getDefaultInstance().getStore();
            serviceConfig = store.getServiceConfiguration();
        } else {
            try {
                serviceConfig = new ServiceConfiguration( s.getUid(), s.getCid() );
            } catch( NoSuchServiceException e ) {
                serviceConfig = null;
            } finally {
                if( serviceConfig != null ) {
                    store = Session.getInstance( serviceConfig ).getStore();
View Full Code Here

Examples of net.rim.blackberry.api.mail.ServiceConfiguration

                final ServiceRecord serviceRecord = serviceRecords[ i ];
                String emailAddress = null;

                if( type == ServiceObject.TYPE_EMAIL ) {
                    final ServiceConfiguration serviceConfig = new ServiceConfiguration( serviceRecord );
                    emailAddress = serviceConfig.getEmailAddress();
                }

                serviceList[ i ] = new ServiceObject( emailAddress, serviceRecord.getName(), new Integer( type ), serviceRecord
                        .getUid(), serviceRecord.getCid() );
View Full Code Here

Examples of nl.topicus.onderwijs.dashboard.modules.ServiceConfiguration

    if (!isEnabled()) {
      enabled = true;
      timer = Executors.newScheduledThreadPool(4);
      log.info("(Re)scheduling timer tasks");
      for (Retriever curRetriever : retrievers) {
        ServiceConfiguration config = curRetriever.getClass()
            .getAnnotation(ServiceConfiguration.class);
        if (config.runInRandomMode()
            || application.getMode() == DashboardMode.LiveData) {
          timer.scheduleWithFixedDelay(new TimerTask(curRetriever),
              0, config.interval(), config.unit());
        }
      }
    }
  }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.util.ServiceConfiguration

                }
            }
        }

        if (bus instanceof CXFBusImpl) {
            final ServiceConfiguration configuration = new ServiceConfiguration(SystemInstance.get().getProperties(),
                SystemInstance.get().getComponent(OpenEjbConfiguration.class).facilities.services);

            final CXFBusImpl busImpl = (CXFBusImpl) bus;
            final Collection<ServiceInfo> serviceInfos = configuration.getAvailableServices();
            final Properties properties = configuration.getProperties();
            if (properties == null || properties.isEmpty()) {
                return;
            }

            final String featuresIds = properties.getProperty(BUS_PREFIX + FEATURES);
            if (featuresIds != null) {
                final List<AbstractFeature> features = createFeatures(serviceInfos, featuresIds);
                if (features != null) {
                    features.addAll(busImpl.getFeatures());
                    busImpl.setFeatures(features);
                }
            }

            final Properties busProperties = ServiceInfos.serviceProperties(serviceInfos, properties.getProperty(BUS_PREFIX + ENDPOINT_PROPERTIES));
            if (busProperties != null) {
                busImpl.getProperties().putAll(PropertiesHelper.map(busProperties));
            }

            configureInterceptors(busImpl, BUS_PREFIX, serviceInfos, configuration.getProperties());

            SystemInstance.get().getProperties().setProperty(BUS_CONFIGURED_FLAG, "true");

            busImpl.setId(SystemInstance.get().getProperty("openejb.cxf.bus.id", "openejb.cxf.bus"));
        }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.util.ServiceConfiguration

                    // no more a singleton if the ejb is not a singleton...but it is a weird case
                    deployEJB(webApp.contextRoot, appPrefix, restEjbs.get(o.getClass().getName()).context, additionalProviders, appInfo.services);
                } else {
                    pojoConfigurations = PojoUtil.findPojoConfig(pojoConfigurations, appInfo, webApp);
                    deploySingleton(webApp.contextRoot, appPrefix, o, appInstance, classLoader, additionalProviders,
                        new ServiceConfiguration(PojoUtil.findConfiguration(pojoConfigurations, o.getClass().getName()), appInfo.services));
                }
            }

            for (final Class<?> clazz : classes) {
                if (additionalProviders.contains(clazz)) {
                    continue;
                }

                if (hasEjbAndIsNotAManagedBean(restEjbs, clazz.getName())) {
                    deployEJB(webApp.contextRoot, appPrefix, restEjbs.get(clazz.getName()).context, additionalProviders, appInfo.services);
                } else {
                    pojoConfigurations = PojoUtil.findPojoConfig(pojoConfigurations, appInfo, webApp);
                    deployPojo(webApp.contextRoot, appPrefix, clazz, appInstance, classLoader, injections, context, owbCtx, additionalProviders,
                        new ServiceConfiguration(PojoUtil.findConfiguration(pojoConfigurations, clazz.getName()), appInfo.services));
                }
            }

            useApp = useApp || classes.size() + singletons.size() > 0;
            LOGGER.info("REST application deployed: " + app);
        }

        if (!useApp) {
            if (webApp.restApplications.isEmpty() || webApp.restApplications.size() > 1) {
                appPrefix = webApp.contextRoot;
            } // else keep application prefix

            final Set<String> restClasses = new HashSet<String>(webApp.restClass);
            restClasses.addAll(webApp.ejbRestServices);

            for (final String clazz : restClasses) {
                if (restEjbs.containsKey(clazz)) {
                    final BeanContext ctx = restEjbs.get(clazz).context;
                    if (hasEjbAndIsNotAManagedBean(restEjbs, clazz)) {
                        deployEJB(webApp.contextRoot, appPrefix, restEjbs.get(clazz).context, additionalProviders, appInfo.services);
                    } else {
                        deployPojo(webApp.contextRoot, appPrefix, ctx.getBeanClass(), null, ctx.getClassLoader(), ctx.getInjections(), context,
                            owbCtx, additionalProviders, new ServiceConfiguration(ctx.getProperties(), appInfo.services));
                    }
                } else {
                    try {
                        final Class<?> loadedClazz = classLoader.loadClass(clazz);
                        pojoConfigurations = PojoUtil.findPojoConfig(pojoConfigurations, appInfo, webApp);
                        deployPojo(webApp.contextRoot, appPrefix, loadedClazz, null, classLoader, injections, context, owbCtx,
                            additionalProviders,
                            new ServiceConfiguration(PojoUtil.findConfiguration(pojoConfigurations, loadedClazz.getName()), appInfo.services));
                    } catch (final ClassNotFoundException e) {
                        throw new OpenEJBRestRuntimeException("can't find class " + clazz, e);
                    }
                }
            }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.util.ServiceConfiguration

        final RsRegistry.AddressInfo address = rsRegistry.createRsHttpListener(contextRoot, listener, classLoader, nopath.substring(NOPATH_PREFIX.length() - 1), virtualHost, auth, realm);

        services.add(new DeployedService(address.complete, contextRoot, application.getClass().getName()));
        listener.deployApplication(application, address.complete.substring(0, address.complete.length() - wildcard.length()), nopath.substring(NOPATH_PREFIX.length(), nopath.length() - wildcard.length()), additionalProviders, restEjbs, // app config
            classLoader, injections, context, owbCtx, // injection/webapp context
            new ServiceConfiguration(configuration, appInfo.services)); // deployment config
    }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.util.ServiceConfiguration

                            final BeanContext ctx = ejb.getValue().context;
                            if (BeanType.MANAGED.equals(ctx.getComponentType())) {
                                deployPojo("", ejb.getValue().path, ctx.getBeanClass(), null, ctx.getClassLoader(), ctx.getInjections(),
                                    ctx.getJndiContext(),
                                    containerSystem.getAppContext(appInfo.appId).getWebBeansContext(),
                                    providers, new ServiceConfiguration(ctx.getProperties(), appInfo.services));
                            } else {
                                deployEJB("", ejb.getValue().path, ctx, providers, appInfo.services);
                            }
                        }
                    }
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.