Examples of Consumer


Examples of org.apache.maven.archiva.common.consumers.Consumer

        }

        Iterator it = consumers.iterator();
        while ( it.hasNext() )
        {
            Consumer consumer = (Consumer) it.next();

            /* NOTE: Do not insert the consumer exclusion patterns here.
             * Exclusion patterns are handled by RepositoryScanner.wantsFile(Consumer, String)
             *
             * addUniqueElements( consumer.getExcludePatterns(), allExcludes );
             */
            addUniqueElements( consumer.getIncludePatterns(), allIncludes );
        }

        if ( extraFileInclusions != null )
        {
            allIncludes.addAll( extraFileInclusions );
View Full Code Here

Examples of org.apache.maven.archiva.consumers.Consumer

    {
        boolean satisfies = false;

        if ( object instanceof Consumer )
        {
            Consumer consumer = (Consumer) object;
            satisfies = consumer.isPermanent();
        }

        return satisfies;
    }
View Full Code Here

Examples of org.candlepin.gutterball.model.snapshot.Consumer

        event.setNewEntity("test-string");

        Date expectedDate = new Date();
        ComplianceStatus status = new ComplianceStatus(expectedDate, "VALID");
        // Date is null here -- expected to be filled in with the status date.
        Compliance snap = new Compliance(null, new Consumer(), status);

        when(mapper.readValue(eq(event.getNewEntity()), eq(Compliance.class))).thenReturn(snap);
        handler.handleCreated(event);

        verify(complianceCurator).create(eq(snap));
View Full Code Here

Examples of org.candlepin.model.Consumer

    //
    @Override
    @Transactional
    public List<Entitlement> entitleByProducts(AutobindData data)
        throws EntitlementRefusedException {
        Consumer consumer = data.getConsumer();
        String[] productIds = data.getProductIds();
        Collection<String> fromPools = data.getPossiblePools();
        Date entitleDate = data.getOnDate();
        Owner owner = consumer.getOwner();

        List<Entitlement> entitlements = new LinkedList<Entitlement>();

        List<PoolQuantity> bestPools = getBestPools(consumer, productIds,
            entitleDate, owner, null, fromPools);
View Full Code Here

Examples of org.codehaus.activemq.sampler.Consumer

     *
     * @return returns a sampler
     */
    public TestElement createTestElement() {

        Consumer sampler = new Consumer();
        modifyTestElement(sampler);
        return sampler;
    }
View Full Code Here

Examples of org.exolab.jms.tools.migration.proxy.Consumer

     * @throws PersistenceException for any persistence error
     */
    public void importCollection(StoreIterator iterator) throws JMSException,
                                                                PersistenceException {
        while (iterator.hasNext()) {
            Consumer consumer = (Consumer) iterator.next();
            add(consumer);
        }
    }
View Full Code Here

Examples of org.gatein.registration.Consumer

      }
      group.setStatus(status);

      for (ConsumerMapping cm : getConsumers())
      {
         Consumer consumer = persistenceManager.getConsumerById(cm.getPersistentKey());
         if (consumer == null)
         {
            consumer = cm.toConsumer(persistenceManager);
         }
View Full Code Here

Examples of org.gatein.registration.Consumer

            // if we didn't get a registration to return, just throw the exception
            throw e;
         }
      }*/

      Consumer consumer = getOrCreateConsumer(identity, createConsumerIfNeeded, consumerName);

      // create the actual registration
      RegistrationSPI registration = persistenceManager.addRegistrationFor((ConsumerSPI)consumer, registrationProperties);

      // let the policy decide what the handle should be
View Full Code Here

Examples of org.gatein.registration.Consumer

      // check with policy if we allow the consumer
      policy.validateConsumerName(name, this);

      String identity = policy.getConsumerIdFrom(name, Collections.<QName, Object>emptyMap());

      Consumer consumer = persistenceManager.createConsumer(identity, name);

      // deal with group if needed
      // let the policy decide if there should be a group associated with the Consumer and if yes, with which id
      String groupName = policy.getAutomaticGroupNameFor(name);
      if (groupName != null)
View Full Code Here

Examples of org.hornetq.core.server.Consumer

   public synchronized boolean hasMatchingConsumer(final ServerMessage message)
   {
      for (ConsumerHolder holder : consumerList)
      {
         Consumer consumer = holder.consumer;

         if (consumer instanceof Redistributor)
         {
            continue;
         }

         Filter filter = consumer.getFilter();

         if (filter == null)
         {
            return true;
         }
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.