Examples of scope()


Examples of org.gwtoolbox.ioc.core.client.annotation.Component.scope()

        Component component = type.getAnnotation(Component.class);
        String name = component.name();
        if ("".equals(name)) {
            name = StringUtils.uncapitalize(type.getSimpleSourceName());
        }
        SimpleComponentDefinition definition = new SimpleComponentDefinition(name, type, component.scope() == Scope.SINGLETON);
        definition.setLazy(component.lazyInit());
        String initMethodName = component.initMethodName();
        if (!"".equals(initMethodName)) {
            definition.setInitMethodName(initMethodName);
        }
View Full Code Here

Examples of org.jclouds.domain.LocationBuilder.scope()

      nodeMetadataBuilder.name(name).ids(vm.getName()).group(group);
      // TODO Set up location properly
      LocationBuilder locationBuilder = new LocationBuilder();
      locationBuilder.description("");
      locationBuilder.id("");
      locationBuilder.scope(LocationScope.HOST);
      nodeMetadataBuilder.location(locationBuilder.build());
      nodeMetadataBuilder.hostname(vm.getName());

      MachineState vmState = vm.getState();
      NodeMetadata.Status nodeState = toPortableNodeStatus.get(vmState);
View Full Code Here

Examples of org.jclouds.domain.LocationBuilder.scope()

   @Override
   public Location apply(Region input) {
      LocationBuilder builder = new LocationBuilder();
      builder.id(input.getSlug());
      builder.description(input.getId() + "/" + input.getName());
      builder.scope(LocationScope.REGION);
      builder.parent(getOnlyElement(justProvider.get()));
      builder.iso3166Codes(ImmutableSet.<String> of());
      return builder.build();
   }
}
View Full Code Here

Examples of org.jclouds.domain.LocationBuilder.scope()

   public Location apply(final VirtualDatacenter vdc) {
      LocationBuilder builder = new LocationBuilder();
      builder.id(vdc.getId().toString());
      builder.description(vdc.getName());
      builder.metadata(ImmutableMap.<String, Object> of());
      builder.scope(LocationScope.ZONE);
      builder.iso3166Codes(ImmutableSet.<String> of());

      Datacenter parent = regionMap.get().get(vdc.unwrap().getIdFromLink(ParentLinkName.DATACENTER));
      builder.parent(datacenterToLocation.apply(parent));
View Full Code Here

Examples of org.jclouds.domain.LocationBuilder.scope()

   public Location apply(final Datacenter datacenter) {
      LocationBuilder builder = new LocationBuilder();
      builder.id(datacenter.getId().toString());
      builder.description(datacenter.getName() + " [" + datacenter.getLocation() + "]");
      builder.metadata(ImmutableMap.<String, Object> of());
      builder.scope(LocationScope.REGION);
      builder.iso3166Codes(ImmutableSet.<String> of());

      builder.parent(new LocationBuilder().scope(LocationScope.PROVIDER).id("abiquo").description("abiquo").build());

      return builder.build();
View Full Code Here

Examples of org.mapstruct.ap.prism.XmlElementDeclPrism.scope()

            if ( xmlElememtDecl == null ) {
                continue;
            }

            String name = xmlElememtDecl.name();
            TypeMirror scope = xmlElememtDecl.scope();
            TypeMirror target = sourceMappingMethod.getExecutable().getReturnType();

            boolean nameIsSetAndMatches = name != null && name.equals( targetPropertyName );
            boolean scopeIsSetAndMatches = scope != null && typeUtils.isSameType( scope, target );
View Full Code Here

Examples of org.opengis.util.GenericName.scope()

            final NameSpace scope = scope();
            if (scope.isGlobal()) {
                fullyQualified = this;
            } else {
                final GenericName prefix = scope.name();
                assert prefix.scope().isGlobal() : prefix;
                fullyQualified = new DefaultScopedName(prefix, this);
            }
        }
        return fullyQualified;
    }
View Full Code Here

Examples of org.opengis.util.LocalName.scope()

         * locals[index-1] element (so we assume index > 0).
         */
        final Iterator<? extends LocalName> it = parsedTail.iterator();
        LocalName name = it.next();
        final LocalName lastName  = locals[index-1];
        final NameSpace lastScope = lastName.scope();
        final NameSpace tailScope = name.scope();
        if (tailScope instanceof DefaultNameSpace && ((DefaultNameSpace) tailScope).parent == lastScope) {
            /*
             * If the tail is actually the tip (a LocalName), remember the tail so we
             * don't need to create it again later. Then copy the tail after the path.
View Full Code Here

Examples of org.openntf.domino.xots.annotations.Persistent.scope()

    Set<Class<?>> classes = runner.getClasses();
    for (Class<?> clazz : classes) {
      Persistent persistent = clazz.getAnnotation(Persistent.class);
      Persistent.Context ctx = persistent.appContext();
      Persistent.Scope scope = persistent.scope();
      // TODO de-dupe based on replica ID to handle faux text ".nsf" redirection files
      if (scope == Persistent.Scope.APPLICATION) {
        if (ctx == Persistent.Context.XSPFORCED) {
          try {
            NSFComponentModule forcedMod = getNsfService().loadModule(referenceMod.getDatabasePath());
View Full Code Here

Examples of org.sonar.core.component.ComponentDto.scope()

  public void delete(String projectKey) {
    DbSession dbSession = dbClient.openSession(false);
    try {
      ComponentDto project = dbClient.componentDao().getByKey(dbSession, projectKey);
      if (!Scopes.PROJECT.equals(project.scope())) {
        throw new IllegalArgumentException("Only project can be deleted");
      }
      purgeDao.deleteResourceTree(project.getId());
      deletePermissionIndexes(dbSession, project.uuid());
      dbSession.commit();
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.