Package net.buffalo.service

Examples of net.buffalo.service.BuffaloServiceConfigurer


   
    String[] buffaloConfigBeanNames = appCtx.getBeanNamesForType(BuffaloServiceConfigurer.class);
   
    for (int i = 0; i < buffaloConfigBeanNames.length; i++) {
      String beanName = buffaloConfigBeanNames[i];
      BuffaloServiceConfigurer configBean = (BuffaloServiceConfigurer)appCtx.getBean(beanName);
      Map singleServices = configBean.getServices();
      Iterator iter = singleServices.keySet().iterator();
      while (iter.hasNext()) {
        String serviceName = (String)iter.next();
        services.put(serviceName, beanName);
      }
View Full Code Here


  public Object getService(String serviceId, String serviceName) throws
              NoSuchServiceException, ServiceCreationFailException {
   
    WebApplicationContext appCtx = WebApplicationContextUtils.getWebApplicationContext(this.context);
   
    BuffaloServiceConfigurer config = (BuffaloServiceConfigurer) (appCtx.getBean(serviceName));
   
    Object instance = config.getServices().get(serviceId);
   
    if (instance == null) {
      throw new NoSuchServiceException("In configBean '" + serviceName +
          "', no service named '" + serviceId + "' configed.");
    }
View Full Code Here

TOP

Related Classes of net.buffalo.service.BuffaloServiceConfigurer

Copyright © 2018 www.massapicom. 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.