Examples of scope()


Examples of org.apache.karaf.shell.commands.Command.scope()

                    if (cmds == null) {
                        cmds = new TreeSet<String>();
                        commands.put(cmd.scope(), cmds);
                    }
                    cmds.add(cmd.name());
                    getLog().info("Found command: " + cmd.scope() + ":" + cmd.name());
                } catch (Exception e) {
                    getLog().warn("Unable to write help for " + clazz.getName(), e);
                }
            }
View Full Code Here

Examples of org.apache.myfaces.mc.test.core.annotation.PageBean.scope()

                    }
                    org.apache.myfaces.config.impl.digester.elements.ManagedBeanImpl bean = new
                        org.apache.myfaces.config.impl.digester.elements.ManagedBeanImpl();
                    bean.setBeanClass(annoPageBean.clazz().getName());
                    bean.setName(annoPageBean.name() == null ? annoPageBean.clazz().getName() : annoPageBean.name());
                    bean.setScope(annoPageBean.scope() == null ? "request" : annoPageBean.scope());
                    bean.setEager(Boolean.toString(annoPageBean.eager()));

                    ((org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl)facesConfig).
                        addManagedBean(bean);
                }
View Full Code Here

Examples of org.apache.shale.tiger.managed.Bean.scope()

                log().debug("Class '" + clazz.getName() + "' has an @Bean annotation");
            }
            ManagedBeanConfig mbc = new ManagedBeanConfig();
            mbc.setName(bean.name());
            mbc.setType(clazz.getName());
            switch (bean.scope()) {
                case APPLICATION:
                    mbc.setScope("application");
                    break;
                case REQUEST:
                    mbc.setScope("request");
View Full Code Here

Examples of org.atmosphere.annotation.Suspend.scope()

           
            long suspendTimeout = suspendAnnotation.period();
            TimeUnit tu = suspendAnnotation.timeUnit();
            suspendTimeout = translateTimeUnit(suspendTimeout, tu);
           
            Suspend.SCOPE scope = suspendAnnotation.scope();
            Class<? extends AtmosphereResourceEventListener>[] listeners =
                    suspendAnnotation.listeners();
            String topic = null;
            boolean writeEntity = true;
            //TODO used eventually in executeSuspend()
View Full Code Here

Examples of org.cruxframework.crux.core.client.ioc.Inject.scope()

        {
          String fieldTypeName = fieldType.getQualifiedSourceName();
          IocConfigImpl<?> iocConfig = (IocConfigImpl<?>) configurations.get(fieldTypeName);
          if (iocConfig != null)
          {
            if (inject.scope().equals(org.cruxframework.crux.core.client.ioc.Inject.Scope.DEFAULT))
            {
              return iocContainerVariable+".get"+fieldTypeName.replace('.', '_')+
                  "("+Scope.class.getCanonicalName()+"."+iocConfig.getScope().name()+", null)";
            }
            return iocContainerVariable+".get"+fieldTypeName.replace('.', '_')+
View Full Code Here

Examples of org.cruxframework.crux.core.client.ioc.Inject.scope()

            {
              return iocContainerVariable+".get"+fieldTypeName.replace('.', '_')+
                  "("+Scope.class.getCanonicalName()+"."+iocConfig.getScope().name()+", null)";
            }
            return iocContainerVariable+".get"+fieldTypeName.replace('.', '_')+
                "("+Scope.class.getCanonicalName()+"."+getScopeName(inject.scope())+", "+EscapeUtils.quote(inject.subscope())+")";
          }
          else
          {
            return "GWT.create("+fieldTypeName+".class)";
          }
View Full Code Here

Examples of org.cruxframework.crux.core.client.ioc.Inject.scope()

      String fieldTypeName = parameterType.getQualifiedSourceName();
      IocConfigImpl<?> iocConfig = (IocConfigImpl<?>) configurations.get(fieldTypeName);
      if (iocConfig != null)
      {
        Inject inject = getInjectAnnotation(parameter);
        if (inject.scope().equals(org.cruxframework.crux.core.client.ioc.Inject.Scope.DEFAULT))
        {
          return iocContainerVariable+".get"+fieldTypeName.replace('.', '_')+
              "("+Scope.class.getCanonicalName()+"."+iocConfig.getScope().name()+", null)";
        }
        return iocContainerVariable+".get"+fieldTypeName.replace('.', '_')+
View Full Code Here

Examples of org.cruxframework.crux.core.client.ioc.Inject.scope()

        {
          return iocContainerVariable+".get"+fieldTypeName.replace('.', '_')+
              "("+Scope.class.getCanonicalName()+"."+iocConfig.getScope().name()+", null)";
        }
        return iocContainerVariable+".get"+fieldTypeName.replace('.', '_')+
            "("+Scope.class.getCanonicalName()+"."+getScopeName(inject.scope())+", "+EscapeUtils.quote(inject.subscope())+")";
      }
      else
      {
        return "GWT.create("+fieldTypeName+".class)";
      }
View Full Code Here

Examples of org.cruxframework.crux.core.client.ioc.IoCResource.scope()

          if (!ioCResource.provider().equals(NoProvider.class))
          {
            iocConfig.toProvider((Class)ioCResource.provider());
          }
          iocConfig.runtimeAccessible(ioCResource.runtimeAccessible());
          iocConfig.scope(ioCResource.scope());
        }
      }
    }
    }
View Full Code Here

Examples of org.elasticsearch.search.internal.ScopePhase.scope()

                        ScopePhase.CollectorPhase collectorPhase = (ScopePhase.CollectorPhase) scopePhase;
                        // collector phase might not require extra processing, for example, when scrolling
                        if (!collectorPhase.requiresProcessing()) {
                            continue;
                        }
                        if (scopePhase.scope() != null) {
                            searchContext.searcher().processingScope(scopePhase.scope());
                        }
                        Collector collector = collectorPhase.collector();
                        searchContext.searcher().search(collectorPhase.query(), collector);
                        collectorPhase.processCollector(collector);
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.