Examples of expose()


Examples of com.google.inject.PrivateBinder.expose()

            public void configure(Binder binder)
            {
                PrivateBinder privateBinder = binder.newPrivateBinder();
                privateBinder.install(createModule(Config1.class, null));
                privateBinder.bind(ExposeConfig.class).annotatedWith(named("no-prefix")).to(ExposeConfig.class).in(Scopes.SINGLETON);
                privateBinder.expose(Key.get(ExposeConfig.class, named("no-prefix")));

                privateBinder = binder.newPrivateBinder();
                privateBinder.install(createModule(Config1.class, "prefix"));
                privateBinder.bind(ExposeConfig.class).annotatedWith(named("prefix")).to(ExposeConfig.class).in(Scopes.SINGLETON);
                privateBinder.expose(Key.get(ExposeConfig.class, named("prefix")));
View Full Code Here

Examples of com.google.inject.PrivateBinder.expose()

                            {
                                newExporter(binder).export(ManagedClass.class);
                                PrivateBinder privateBinder = binder.newPrivateBinder();
                                HttpClientBinder.httpClientPrivateBinder(privateBinder, binder).bindHttpClient("foo", FooClient.class);
                                privateBinder.bind(ExposeHttpClient.class);
                                privateBinder.expose(ExposeHttpClient.class);
                            }
                        })
                .quiet()
                .initialize();
View Full Code Here

Examples of com.google.inject.PrivateBinder.expose()

                            {
                                newExporter(binder).export(ManagedClass.class);
                                PrivateBinder privateBinder = binder.newPrivateBinder();
                                HttpClientBinder.httpClientPrivateBinder(privateBinder, binder).bindAsyncHttpClient("foo", FooClient.class);
                                privateBinder.bind(ExposeHttpClient.class);
                                privateBinder.expose(ExposeHttpClient.class);
                            }
                        })
                .quiet()
                .initialize();
View Full Code Here

Examples of com.google.inject.PrivateBinder.expose()

                            {
                                newExporter(binder).export(ManagedClass.class);
                                PrivateBinder privateBinder = binder.newPrivateBinder();
                                HttpClientBinder.httpClientPrivateBinder(privateBinder, binder).bindAsyncHttpClient("foo", FooClient.class);
                                privateBinder.bind(ExposeHttpClient.class);
                                privateBinder.expose(ExposeHttpClient.class);
                                HttpClientBinder.httpClientBinder(binder).bindAsyncHttpClient("bar", BarClient.class);
                            }
                        })
                .quiet()
                .initialize();
View Full Code Here

Examples of com.pointcliki.dizgruntled.logic.Hidden.expose()

        if (!isCanceled()) {
          fGrunt.depleteStamina(4);
          fGrunt.map().tileToggle(fTarget);
          Hidden p = fGrunt.gridManager().getFirstEntityOfTypeAt(fTarget, Hidden.class);
         
          if (p != null) p.expose();
        }
        return Minion.FINISH;
      }
    }, 50);
    fGrunt.frameManager().queue(new Minion<FrameEvent>() {
View Full Code Here

Examples of com.pointcliki.dizgruntled.logic.Hidden.expose()

      public long run(Dispatcher<FrameEvent> dispatcher, String type, FrameEvent event) {
        if (!isCanceled())  {
          fGrunt.depleteStamina(5);
          fGrunt.map().tileToggle(fTarget);
          Hidden p = fGrunt.gridManager().getFirstEntityOfTypeAt(fTarget, Hidden.class);
          if (p != null) p.expose();
        }
        return Minion.FINISH;
      }
    }, 105);
    fGrunt.frameManager().queue(new Minion<FrameEvent>() {
View Full Code Here

Examples of games.stendhal.tools.tiled.LayerDefinition.expose()

    width = layer.getWidth();
    height = layer.getHeight();

    logger.debug("Layer(" + layer.getName() + "): " + width + "x" + height);

    map = layer.expose();
  }

  /**
   * Set the tileset.
   *
 
View Full Code Here

Examples of org.apache.cloudstack.api.Parameter.expose()

        List<Field> fields = ReflectUtil.getAllFieldsForClass(cmd.getClass(), BaseCmd.class);

        for (Field field : fields) {
            Parameter parameterAnnotation = field.getAnnotation(Parameter.class);
            if ((parameterAnnotation == null) || !parameterAnnotation.expose()) {
                continue;
            }

            //TODO: Annotate @Validate on API Cmd classes, FIXME how to process Validate
            Validate validateAnnotation = field.getAnnotation(Validate.class);
View Full Code Here

Examples of org.apache.cloudstack.api.Parameter.expose()

        response.setAsync(isAsync);

        for (Field field : fields) {
            Parameter parameterAnnotation = field.getAnnotation(Parameter.class);
            if (parameterAnnotation != null && parameterAnnotation.expose() && parameterAnnotation.includeInApiDoc()) {

                ApiParameterResponse paramResponse = new ApiParameterResponse();
                paramResponse.setName(parameterAnnotation.name());
                paramResponse.setDescription(parameterAnnotation.description());
                paramResponse.setType(parameterAnnotation.type().toString().toLowerCase());
View Full Code Here

Examples of org.apache.cloudstack.api.Parameter.expose()

        Set<Argument> requiredArguments = new HashSet<Argument>();
        Set<Argument> optionalArguments = new HashSet<Argument>();
        Argument id = null;
        for (Field f : fields) {
            Parameter parameterAnnotation = f.getAnnotation(Parameter.class);
            if (parameterAnnotation != null && parameterAnnotation.expose() && parameterAnnotation.includeInApiDoc()) {
                Argument reqArg = new Argument(parameterAnnotation.name());
                reqArg.setRequired(parameterAnnotation.required());
                if (!parameterAnnotation.description().isEmpty()) {
                    reqArg.setDescription(parameterAnnotation.description());
                }
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.