Examples of IdMatcher


Examples of org.apache.tapestry.ioc.IdMatcher

    private Collection<DependencyNode<T>> findDependencies(String sourceId, String patternList)
    {
        String sourceModuleId = IOCUtilities.extractModuleId(sourceId);

        IdMatcher matcher = buildMatcherForPattern(sourceModuleId, patternList);

        Collection<DependencyNode<T>> result = newList();

        for (String id : _dependencyNodesById.keySet())
        {
            if (sourceId.equals(id)) continue;

            if (matcher.matches(id)) result.add(_dependencyNodesById.get(id));
        }

        return result;
    }

Examples of org.apache.tapestry.ioc.IdMatcher

    {
        List<IdMatcher> matchers = newList();

        for (String pattern : patternList.split(","))
        {
            IdMatcher matcher = new IdMatcherImpl(IOCUtilities.toQualifiedId(
                    sourceModuleId,
                    pattern.trim()));
            matchers.add(matcher);
        }

Examples of org.apache.tapestry.ioc.IdMatcher

    }

    @Test(dataProvider = "id_match_values")
    public void id_match(String pattern, boolean expectedMatch)
    {
        IdMatcher matcher = new IdMatcherImpl(pattern);

        Assert.assertEquals(matcher.matches("foo.bar.Baz"), expectedMatch);
    }

Examples of org.apache.tapestry.ioc.IdMatcher

        List<IdMatcher> matchers = CollectionFactory.newList();

        for (String pattern : notNull(patterns, "patterns"))
        {
            IdMatcher matcher = new IdMatcherImpl(pattern);
            matchers.add(matcher);
        }

        _idMatcher = new OrIdMatcher(matchers);

Examples of org.apache.tapestry5.ioc.IdMatcher

        List<IdMatcher> matchers = CollectionFactory.newList();

        for (String pattern : patterns)
        {
            IdMatcher matcher = new IdMatcherImpl(pattern);
            matchers.add(matcher);
        }

        idMatcher = new OrIdMatcher(matchers);

Examples of org.apache.tapestry5.ioc.IdMatcher

        List<IdMatcher> matchers = CollectionFactory.newList();

        for (String pattern : patterns)
        {
            IdMatcher matcher = new IdMatcherImpl(pattern);
            matchers.add(matcher);
        }

        idMatcher = new OrIdMatcher(matchers);

Examples of org.apache.tapestry5.ioc.IdMatcher

    }
  }

  private Collection<DependencyNode<T>> findDependencies(String sourceId, String patternList)
  {
    IdMatcher matcher = buildMatcherForPattern(patternList);

    Collection<DependencyNode<T>> result = newList();

    for (String id : idToDependencyNode.keySet())
    {
      if (sourceId.equals(id)) continue;

      if (matcher.matches(id)) result.add(idToDependencyNode.get(id));
    }

    return result;
  }

Examples of org.apache.tapestry5.ioc.IdMatcher

  {
    List<IdMatcher> matchers = newList();

    for (String pattern : patternList.split(","))
    {
      IdMatcher matcher = new IdMatcherImpl(pattern.trim());

      matchers.add(matcher);
    }

    return matchers.size() == 1 ? matchers.get(0) : new OrIdMatcher(matchers);

Examples of org.apache.tapestry5.ioc.IdMatcher

        }
    }

    private Collection<DependencyNode<T>> findDependencies(String sourceId, String patternList)
    {
        IdMatcher matcher = buildMatcherForPattern(patternList);

        Collection<DependencyNode<T>> result = newList();

        for (String id : dependencyNodesById.keySet())
        {
            if (sourceId.equals(id)) continue;

            if (matcher.matches(id)) result.add(dependencyNodesById.get(id));
        }

        return result;
    }

Examples of org.apache.tapestry5.ioc.IdMatcher

    {
        List<IdMatcher> matchers = newList();

        for (String pattern : patternList.split(","))
        {
            IdMatcher matcher = new IdMatcherImpl(pattern.trim());

            matchers.add(matcher);
        }

        return matchers.size() == 1 ? matchers.get(0) : new OrIdMatcher(matchers);
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.