Examples of ManagerImpl


Examples of org.apache.karaf.shell.impl.action.command.ManagerImpl

        return sessionFactory.create(in, out, err, terminal, null, null);
    }

    protected SessionFactory createSessionFactory(ThreadIO threadio) {
        SessionFactoryImpl sessionFactory = new SessionFactoryImpl(threadio);
        sessionFactory.register(new ManagerImpl(sessionFactory, sessionFactory));
        return sessionFactory;
    }
View Full Code Here

Examples of org.apache.karaf.shell.impl.action.command.ManagerImpl

    public String getDiscoveryResource() {
        return "META-INF/services/org/apache/karaf/shell/commands";
    }

    protected void discoverCommands(Session session, ClassLoader cl, String resource) throws IOException, ClassNotFoundException {
        Manager manager = new ManagerImpl(session.getRegistry(), session.getFactory().getRegistry(), true);
        Enumeration<URL> urls = cl.getResources(resource);
        while (urls.hasMoreElements()) {
            URL url = urls.nextElement();
            BufferedReader r = new BufferedReader(new InputStreamReader(url.openStream()));
            String line = r.readLine();
            while (line != null) {
                line = line.trim();
                if (line.length() > 0 && line.charAt(0) != '#') {
                    final Class<?> actionClass = cl.loadClass(line);
                    manager.register(actionClass);
                }
                line = r.readLine();
            }
            r.close();
        }
View Full Code Here

Examples of org.apache.karaf.shell.impl.action.command.ManagerImpl

            eventAdminListener = listener;
        } catch (NoClassDefFoundError error) {
            // Ignore the listener if EventAdmin package isn't present
        }

        sessionFactory.register(new ManagerImpl(sessionFactory, sessionFactory));

        sessionFactoryRegistration = context.registerService(SessionFactory.class.getName(), sessionFactory, null);

        actionExtender = new CommandExtender(sessionFactory);
        actionExtender.start(context);
View Full Code Here

Examples of org.apache.karaf.shell.impl.action.command.ManagerImpl

    private Registry registry;

    public CommandExtender(Registry registry) {
        setSynchronous(true);
        this.registry = registry;
        this.registry.register(new ManagerImpl(this.registry, this.registry));
    }
View Full Code Here

Examples of org.apache.karaf.shell.impl.action.command.ManagerImpl

            }
            manager = null;
        }
        if (isSatisfied) {
            Registry reg = new RegistryImpl(registry);
            manager = new ManagerImpl(reg, registry);
            reg.register(bundle.getBundleContext());
            reg.register(manager);
            for (Map.Entry<Class, Object> entry : state.getSingleServices().entrySet()) {
                reg.register(entry.getValue());
            }
View Full Code Here

Examples of org.apache.webbeans.container.ManagerImpl

   
    private void validateInjectionPoints()
    {
        logger.info("Validation injection points is started");
       
        ManagerImpl manager = ManagerImpl.getManager();
        InjectionResolver resolver = InjectionResolver.getInstance();
        Set<Bean<?>> beans = manager.getBeans();
       
        if(beans != null && beans.size() > 0)
        {
            for(Bean<?> bean : beans)
            {
View Full Code Here

Examples of org.apache.webbeans.container.ManagerImpl

    private List<AbstractComponent<?>> componentList = new ArrayList<AbstractComponent<?>>();

    public MockManager()
    {
        this.manager = new ManagerImpl();
        ActivityManager.getInstance().setRootActivity(this.manager);
    }
View Full Code Here

Examples of org.apache.webbeans.container.ManagerImpl

    public void clear()
    {
        componentList.clear();       
       
        this.manager = new ManagerImpl();       
    
        ActivityManager.getInstance().setRootActivity(this.manager);       
    }
View Full Code Here

Examples of org.apache.webbeans.container.ManagerImpl

     * @return the current activity
     * @throws WebBeansException if more than one current activity exist
     */
    public ManagerImpl getCurrentActivity()
    {
        ManagerImpl currentActivity = null;
       
        Set<Context> contexts = this.currentActivityMap.keySet();
        List<ManagerImpl> managers = new ArrayList<ManagerImpl>();
        for(Context context : contexts)
        {
View Full Code Here

Examples of org.apache.webbeans.container.ManagerImpl

    }

    public static NotificationManager getInstance()
    {
        ManagerImpl manager =  ActivityManager.getInstance().getCurrentActivity();
       
        return manager.getNotificationManager();
    }
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.