Examples of ScopeType


Examples of org.apache.helix.api.Scope.ScopeType

    }
    return userConfig;
  }

  void setConfig(String[] optValues) {
    ScopeType scopeType = ScopeType.valueOf(optValues[0].toUpperCase());
    String[] scopeArgs = optValues[1].split("[\\s,]");
    String[] keyValues = optValues[2].split("[\\s,]");

    String clusterName = scopeArgs[0];
    Map<String, String> results = new HashMap<String, String>();
View Full Code Here

Examples of org.apache.helix.api.Scope.ScopeType

    }
    System.out.println("Existing clusters: " + result);
  }

  void removeConfig(String[] optValues) {
    ScopeType type = ScopeType.valueOf(optValues[0].toUpperCase());
    String[] scopeArgs = optValues[1].split("[\\s,]");
    String[] keys = optValues[2].split("[\\s,]");
    String clusterName = scopeArgs[0];
    UserConfig userConfig;
    switch (type) {
View Full Code Here

Examples of org.eurekastreams.server.domain.stream.StreamScope.ScopeType

                {
                    String[] results = obj.toString().split(",", 4);
                    if (!results[0].equals("NOTSET"))
                    {
                        String displayName = results[3];
                        ScopeType entityType = ScopeType.valueOf(results[0]);
                        String uniqueId = results[1];
                        long streamScopeId = Long.parseLong(results[2]);

                        typedInScope = new StreamScope(displayName, entityType, uniqueId, streamScopeId);
View Full Code Here

Examples of org.jboss.as.console.client.administration.role.model.ScopeType

        layout.add(form.asWidget());

        typeItem.addChangeHandler(new ChangeHandler() {
            @Override
            public void onChange(final ChangeEvent event) {
                ScopeType type = typeItem.getValue();
                updateScope(type, scopeItem, form);
            }
        });
        updateScope(typeItem.getValue(), scopeItem, form);
View Full Code Here

Examples of org.jboss.seam.ScopeType

      {
         throw new IllegalArgumentException(
                  "must specify either method or value in <factory/> declaration for variable: "
                           + name);
      }
      ScopeType scope = scopeName == null ? ScopeType.UNSPECIFIED : ScopeType.valueOf(scopeName
               .toUpperCase());
      boolean autoCreate = Boolean.parseBoolean(factory.attributeValue("auto-create"));
      factoryDescriptors.add(new FactoryDescriptor(name, scope, method, value, autoCreate));
   }
View Full Code Here

Examples of org.jboss.seam.ScopeType

      String scopeName = component.attributeValue("scope");
      String jndiName = component.attributeValue("jndi-name");
      String precedenceString = component.attributeValue("precedence");
      int precedence = precedenceString==null ? Install.APPLICATION : Integer.valueOf(precedenceString);
      ScopeType scope = scopeName == null ? null : ScopeType.valueOf(scopeName.toUpperCase());
      String autocreateAttribute = component.attributeValue("auto-create");
      Boolean autoCreate = autocreateAttribute==null ? null : Boolean.parseBoolean(autocreateAttribute);
      String startupAttribute = component.attributeValue("startup");
      Boolean startup = startupAttribute==null ? null : Boolean.parseBoolean(startupAttribute);
      String startupDependsAttribute = component.attributeValue("startupDepends");
View Full Code Here

Examples of org.jboss.seam.ScopeType

                  for ( String name: init.getHotDeployableComponents() )
                  {
                     Component component = Component.forName(name);
                     if (component!=null)
                     {
                        ScopeType scope = component.getScope();
                        if ( scope!=ScopeType.STATELESS && scope.isContextActive() )
                        {
                           scope.getContext().remove(name);
                        }
                        init.removeObserverMethods(component);
                     }
                     Contexts.getApplicationContext().remove(name + COMPONENT_SUFFIX);
                  }
View Full Code Here

Examples of org.jboss.seam.ScopeType

      }
   }

   private void installRole(Class<?> scannedClass, Role role)
   {
      ScopeType scope = Seam.getComponentRoleScope(scannedClass, role);
      addComponentDescriptor( new ComponentDescriptor( role.name(), scannedClass, scope ) );
   }
View Full Code Here

Examples of org.jboss.seam.ScopeType

      {
         throw new IllegalArgumentException(
                  "must specify either method or value in <factory/> declaration for variable: "
                           + name);
      }
      ScopeType scope = scopeName == null ? ScopeType.UNSPECIFIED : ScopeType.valueOf(scopeName
               .toUpperCase());
      boolean autoCreate = "true".equals(factory.attributeValue("auto-create"));
      factoryDescriptors.add(new FactoryDescriptor(name, scope, method, value, autoCreate));
   }
View Full Code Here

Examples of org.jboss.seam.ScopeType

      String scopeName = component.attributeValue("scope");
      String jndiName = component.attributeValue("jndi-name");
      String precedenceString = component.attributeValue("precedence");
      int precedence = precedenceString==null ? Install.APPLICATION : Integer.valueOf(precedenceString);
      ScopeType scope = scopeName == null ? null : ScopeType.valueOf(scopeName.toUpperCase());
      String autocreateAttribute = component.attributeValue("auto-create");
      Boolean autoCreate = autocreateAttribute==null ? null : "true".equals(autocreateAttribute);
      String startupAttribute = component.attributeValue("startup");
      Boolean startup = startupAttribute==null ? null : "true".equals(startupAttribute);
      String startupDependsAttribute = component.attributeValue("startupDepends");
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.