Examples of HostComponentProvider


Examples of com.atlassian.plugin.osgi.hostcomponents.HostComponentProvider

    // Determine which module descriptors, or extension points, to expose.
    DefaultModuleDescriptorFactory modules = new DefaultModuleDescriptorFactory(new DefaultHostContainer());
    initPluginDescriptor(modules, DEFAULT_PACKAGE_NAME);

    // Determine which service objects to expose to plugins
    HostComponentProvider host = new HostComponentProvider() {
      public void provide(ComponentRegistrar reg) {
        reg.register(AuthenticationManager.class).forInstance(authenticationManager);
        reg.register(IAgentManagerService.class).forInstance(agentManagerService);
        reg.register(IUserService.class).forInstance(userService);
        reg.register(IPerfTestService.class).forInstance(perfTestService);
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.