Examples of withSource()


Examples of ch.entwine.weblounge.common.content.SearchQuery.withSource()

   * @return the search result
   */
  private SearchResult searchSource(String sourceIdentifier) {
    SearchResult searchResult;
    SearchQuery q = new SearchQueryImpl(site);
    q.withSource(sourceIdentifier);
    try {
      searchResult = contentRepository.find(q);
    } catch (ContentRepositoryException e) {
      logger.error("Error searching for resources with given subject: " + sourceIdentifier);
      throw new RuntimeException(e);
View Full Code Here

Examples of ch.entwine.weblounge.common.impl.content.SearchQueryImpl.withSource()

   * @return the search result
   */
  private SearchResult searchSource(String sourceIdentifier) {
    SearchResult searchResult;
    SearchQuery q = new SearchQueryImpl(site);
    q.withSource(sourceIdentifier);
    try {
      searchResult = contentRepository.find(q);
    } catch (ContentRepositoryException e) {
      logger.error("Error searching for resources with given subject: " + sourceIdentifier);
      throw new RuntimeException(e);
View Full Code Here

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

              for (Key<?> key : privateElements.getExposedKeys()) {
                if (keysToSkip.remove(key)) {
                  skippedExposes.add(key);
                } else {
                  privateBinder.withSource(privateElements.getExposedSource(key)).expose(key);
                }
              }

              for (Element element : privateElements.getElements()) {
                if (element instanceof Binding
View Full Code Here

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

  protected void writePrivateElements(Binder binder, PrivateElements element) {
    PrivateBinder privateBinder = binder.withSource(element.getSource()).newPrivateBinder();
    setPrivateBinder(element, privateBinder);
    apply(privateBinder, element.getElements());
    for (Key<?> key : element.getExposedKeys()) {
      privateBinder.withSource(element.getExposedSource(key)).expose(key);
    }
  }

  /**
   * Execute this target against the linked binding builder.
View Full Code Here

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

        return binder.bind(key);
      }

      public ScopedBindingBuilder visitExposed(ExposedBinding<? extends T> binding) {
        PrivateBinder privateBinder = getPrivateBinder(binding.getPrivateElements());
        privateBinder.withSource(binding.getSource()).expose(key);
        return null;
      }

      public ScopedBindingBuilder visitConvertedConstant(
          ConvertedConstantBinding<? extends T> binding) {
View Full Code Here

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

                replayRecordedElements( privateBinder, privateElements.getElements() );

                // 3. re-expose any exposed keys using their exposed source token
                for ( final Key<?> k : privateElements.getExposedKeys() )
                {
                    privateBinder.withSource( privateElements.getExposedSource( k ) ).expose( k );
                }
            }
            else
            {
                e.applyTo( binder );
View Full Code Here

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

        for ( final Key<?> k : elements.getExposedKeys() )
        {
            // only expose valid bindings that won't conflict with existing ones
            if ( privateAnalyzer.localKeys.contains( k ) && localKeys.add( k ) )
            {
                privateBinder.withSource( elements.getExposedSource( k ) ).expose( k );
            }
        }

        return null;
    }
View Full Code Here

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

    getExposedKeys();
    localIterator = this.exposedKeysToSources.entrySet().iterator();
    while (localIterator.hasNext())
    {
      localObject = (Map.Entry)localIterator.next();
      localPrivateBinder.withSource(((Map.Entry)localObject).getValue()).expose((Key)((Map.Entry)localObject).getKey());
    }
  }

  public Object getExposedSource(Key paramKey)
  {
View Full Code Here

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

    getExposedKeys();
    localIterator = this.exposedKeysToSources.entrySet().iterator();
    while (localIterator.hasNext())
    {
      localObject = (Map.Entry)localIterator.next();
      localPrivateBinder.withSource(((Map.Entry)localObject).getValue()).expose((Key)((Map.Entry)localObject).getKey());
    }
  }

  public Object getExposedSource(Key paramKey)
  {
View Full Code Here

Examples of com.google.inject.internal.Errors.withSource()

    Errors errorsAnyElement = this.errors;
    this.injector = injector;
    try {
      for (Iterator<Element> i = elements.iterator(); i.hasNext(); ) {
        Element element = i.next();
        this.errors = errorsAnyElement.withSource(element.getSource());
        Boolean allDone = element.acceptVisitor(this);
        if (allDone) {
          i.remove();
        }
      }
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.