Package com.sun.hk2.component

Examples of com.sun.hk2.component.InhabitantIntrospectionScanner


        // inject resolver with command parameters...
        final InjectionManager manager = new InjectionManager();

        CrudResolver resolver = habitat.getComponent(resolverType);

        final InjectionResolver paramResolver = getInjectionResolver();

        manager.inject(resolver, paramResolver);

        final ConfigBeanProxy parentBean = resolver.resolve(context, parentType);
        if (parentBean==null) {
View Full Code Here


            }

            metadata.add(ConfigMetadata.TARGET, ae.getName());

            // register the injector.
            LazyInhabitant inhabitant = new LazyInhabitant(habitat, loader, NoopConfigInjector.class.getName(), metadata);
            habitat.addIndex(inhabitant, InjectionTarget.class.getName(), ae.getName());
            habitat.addIndex(inhabitant, ConfigInjector.class.getName(), elementName);
        }
    }
View Full Code Here

        // add the set of injection resolvers
        add(new ExistingSingletonInhabitant<InjectionResolver>(InjectionResolver.class,
                new InjectInjectionResolver(this)));
        add(new ExistingSingletonInhabitant<InjectionResolver>(InjectionResolver.class,
                new LeadInjectionResolver(this)));
       
        // make the habitat itself available
        add(new ExistingSingletonInhabitant<Habitat>(Habitat.class,this));

        add(new ExistingSingletonInhabitant<CompanionSeed.Registerer>(CompanionSeed.Registerer.class,
View Full Code Here

        this.concurrencyControls =
            (null == concurrency_controls)
                ? CONCURRENCY_CONTROLS_DEFAULT : concurrency_controls;
        this.byContract = new MultiMap<String,NamedInhabitant>(this.concurrencyControls);
        this.byType = new MultiMap<String,Inhabitant>(this.concurrencyControls);
        this.singletonScope = new ScopeInstance("singleton", new HashMap());

        if (null == exec) {
          if (ASYNC_EXECUTOR) {
            exec = Executors.newCachedThreadPool(new ThreadFactory() {
              @Override
View Full Code Here

*/
@Scoped(Singleton.class)
public class PerLookup extends Scope {
    @Override
    public ScopeInstance current() {
        return new ScopeInstance(new HashMap());
    }
View Full Code Here

TOP

Related Classes of com.sun.hk2.component.InhabitantIntrospectionScanner

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.