Examples of Mirror


Examples of net.vidageek.mirror.dsl.Mirror

  }

  private void tryToDefineInjectConstructor(ProcessAnnotatedType pat,
      AnnotatedTypeBuilder builder) {
    Class componentClass = pat.getAnnotatedType().getJavaClass();
    List<Constructor> constructors = new Mirror().on(componentClass)
        .reflectAll()
        .constructorsMatching(new ArgsAndNoInjectConstructorMatcher());
    boolean hasArgsConstructorAndNoInjection = !constructors.isEmpty();
    if (hasArgsConstructorAndNoInjection) {
      Constructor constructor = constructors.get(0);
View Full Code Here

Examples of net.vidageek.mirror.dsl.Mirror

    return builder.toString();
  }


  public String getControllerAndMethodName() {
    Field resourceMethodField = new Mirror().on(FixedMethodStrategy.class).reflect().field("resourceMethod");
    resourceMethodField.setAccessible(true);
    try {
      ControllerMethod resourceMethod = (ControllerMethod) resourceMethodField.get(route);
      return resourceMethod.getMethod().toString();
    } catch (Exception e) {
View Full Code Here

Examples of net.vidageek.mirror.dsl.Mirror

    collectors.collect(result);
  }

  void includeMethodInvocationReturnInResult(String name, Object obj, String methodName) {
    try {
      Object toBeIncluded = new Mirror().on(obj).invoke().method(methodName).withoutArgs();
      result.include(name, toBeIncluded);
    } catch (Exception e) {
      result.include(name, "not found");
    }
  }
View Full Code Here

Examples of net.vidageek.mirror.dsl.Mirror

  }

    private String toJBossVFSFileName(URL url)
        throws IOException {
        Object content = url.openConnection().getContent();
        File pfile = (File) new Mirror().on(content).invoke().method("getPhysicalFile").withoutArgs();
        logger.info("real file for url {} is {}", url, pfile);

        if (pfile.isDirectory()) {
            return pfile.getAbsolutePath() + "/";
        }
View Full Code Here

Examples of org.apache.maven.bootstrap.settings.Mirror

                Repository repo = (Repository) i.next();

                boolean foundMirror = false;
                for ( Iterator j = settings.getMirrors().iterator(); j.hasNext() && !foundMirror; )
                {
                    Mirror m = (Mirror) j.next();
                    if ( m.getMirrorOf().equals( repo.getId() ) )
                    {
                        newRemoteRepos.add( new Repository( m.getId(), m.getUrl(), repo.getLayout(), repo.isSnapshots(),
                                                            repo.isReleases() ) );
                        foundMirror = true;
                    }
                }
                if ( !foundMirror )
View Full Code Here

Examples of org.apache.maven.settings.Mirror

            wagonManager.setDefaultRepositoryPermissions( defaultPermissions );

            for ( Iterator i = settings.getMirrors().iterator(); i.hasNext(); )
            {
                Mirror mirror = (Mirror) i.next();

                wagonManager.addMirror( mirror.getId(), mirror.getMirrorOf(), mirror.getUrl() );
            }
        }
        finally
        {
            container.release( wagonManager );
View Full Code Here

Examples of org.apache.maven.settings.Mirror

                }
            }

            for ( Iterator i = settings.getMirrors().iterator(); i.hasNext(); )
            {
                Mirror mirror = (Mirror) i.next();

                wagonManager.addMirror( mirror.getId(), mirror.getMirrorOf(), mirror.getUrl() );
            }
        }
        finally
        {
            container.release( wagonManager );
View Full Code Here

Examples of org.apache.maven.settings.Mirror

            wagonManager.setDefaultRepositoryPermissions( defaultPermissions );

            for ( Iterator i = settings.getMirrors().iterator(); i.hasNext(); )
            {
                Mirror mirror = (Mirror) i.next();

                wagonManager.addMirror( mirror.getId(), mirror.getMirrorOf(), mirror.getUrl() );
            }
        }
        finally
        {
            container.release( wagonManager );
View Full Code Here

Examples of org.apache.maven.settings.Mirror

    {
        if ( repositories != null && mirrors != null )
        {
            for ( ArtifactRepository repository : repositories )
            {
                Mirror mirror = getMirror( repository, mirrors );

                if ( mirror != null )
                {
                    repository.setId( mirror.getId() );
                    repository.setUrl( mirror.getUrl() );

                    if ( StringUtils.isNotEmpty( mirror.getLayout() ) )
                    {
                        repository.setLayout( getLayout( mirror.getLayout() ) );
                    }
                }
            }
        }
    }
View Full Code Here

Examples of org.apache.maven.settings.Mirror

            if ( selector != null )
            {
                RemoteRepository repo = selector.getMirror( RepositoryUtils.toRepo( repository ) );
                if ( repo != null )
                {
                    Mirror mirror = new Mirror();
                    mirror.setId( repo.getId() );
                    mirror.setUrl( repo.getUrl() );
                    mirror.setLayout( repo.getContentType() );
                    return mirror;
                }
            }
        }
        return null;
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.