Package org.eclipse.sisu.space

Examples of org.eclipse.sisu.space.URLClassSpace


      for (String sourceDir : sourceDirs) {
        scanList.add(getTestFile(sourceDir).toURI().toURL());
      }

      final ClassSpace annSpace =
          new URLClassSpace(getContainer().getContainerRealm(), scanList.toArray(new URL[scanList.size()]));
      final PlexusBeanModule nexusPluginModule =
          new PlexusAnnotatedBeanModule(annSpace, new HashMap<String, String>());
      final List<PlexusBeanModule> modules = Arrays.<PlexusBeanModule>asList(nexusPluginModule);

      // register new injector
View Full Code Here


      }
    };
  }

  private Module getSpaceModule() {
    return new SpaceModule(new URLClassSpace(getClass().getClassLoader()), BeanScanning.INDEX);
  }
View Full Code Here

  private Module getWireModule() {
    return new WireModule(new SecurityModule(), getSpaceModule(), getPropertiesModule());
  }

  private Module getSpaceModule() {
    return new SpaceModule(new URLClassSpace(getClass().getClassLoader()), BeanScanning.INDEX);
  }
View Full Code Here

    extends DocumentationBundleSupport
{
  public SimpleDocumentationResourceBundle() throws Exception {
    super(
        new DefaultMimeSupport(),
        new URLClassSpace(new URLClassLoader(new URL[]{SimpleDocumentationResourceBundle.class.getResource("/docs.zip")})),
        new PluginIdentity("test", "test"));
  }
View Full Code Here

        return new SpaceModule( space(), scanning() );
    }

    public ClassSpace space()
    {
        return new URLClassSpace( getClass().getClassLoader() );
    }
View Full Code Here

        return new SpaceModule( space(), scanning() );
    }

    public ClassSpace space()
    {
        return new URLClassSpace( getClass().getClassLoader() );
    }
View Full Code Here

        extends AbstractModule
    {
        @Override
        protected void configure()
        {
            bind( ClassSpace.class ).toInstance( new URLClassSpace( BeanImportTest.class.getClassLoader() ) );

            bindInterceptor( Matchers.subclassesOf( X.class ), Matchers.any() );
            requestInjection( BeanImportTest.this );

            bind( X.class ).annotatedWith( Names.named( "UI" ) ).to( UnrestrictedInstance.class );
View Full Code Here

    {
        final Module[] modules = new Module[bindings.length + 1];
        System.arraycopy( bindings, 0, modules, 0, bindings.length );

        final ClassLoader tccl = Thread.currentThread().getContextClassLoader();
        modules[bindings.length] = new SpaceModule( new URLClassSpace( tccl ), scanning );

        return new WireModule( modules );
    }
View Full Code Here

        realmIds.add( containerRealm.getId() );
        setLookupRealm( containerRealm );

        final List<PlexusBeanModule> beanModules = new ArrayList<PlexusBeanModule>();

        final ClassSpace space = new URLClassSpace( containerRealm );
        beanModules.add( new PlexusXmlBeanModule( space, variables, plexusXml ) );
        final BeanScanning global = BeanScanning.INDEX == scanning ? BeanScanning.GLOBAL_INDEX : scanning;
        beanModules.add( new PlexusAnnotatedBeanModule( space, variables, global ) );

        try
View Full Code Here

        try
        {
            final List<PlexusBeanModule> beanModules = new ArrayList<PlexusBeanModule>();
            synchronized ( descriptorMap )
            {
                final ClassSpace space = new URLClassSpace( realm );
                final List<ComponentDescriptor<?>> descriptors = descriptorMap.remove( realm );
                if ( null != descriptors )
                {
                    beanModules.add( new ComponentDescriptorBeanModule( space, descriptors ) );
                }
View Full Code Here

TOP

Related Classes of org.eclipse.sisu.space.URLClassSpace

Copyright © 2018 www.massapicom. 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.