Examples of OSGiModule


Examples of org.jboss.as.osgi.parser.SubsystemState.OSGiModule

        if (operation.has(MODULES)) {
            ModelNode modules = operation.get(MODULES);
            Set<String> keys = modules.keys();
            for (String current : keys) {
                String value = modules.get(current).get(START).asString();
                subsystemState.addModule(new OSGiModule(ModuleIdentifier.fromString(current), Boolean.parseBoolean(value)));
            }
        }

        return subsystemState;
    }
View Full Code Here

Examples of org.jboss.as.osgi.parser.SubsystemState.OSGiModule

            Set<String> keys = modules.keys();
            if (keys != null) {
                for (String current : keys) {
                    ModelNode modelNode = modules.get(current).get(STARTLEVEL);
                    Integer startLevel = modelNode.isDefined() ? modelNode.asInt() : null;
                    subsystemState.addModule(new OSGiModule(ModuleIdentifier.fromString(current), startLevel));
                }
            }
        }

        return subsystemState;
View Full Code Here

Examples of org.jboss.as.osgi.parser.SubsystemState.OSGiModule

            // Install a service that starts the bundles
            builder = serviceTarget.addService(Services.AUTOINSTALL_PROVIDER_COMPLETE, new AbstractService<Void>() {
                public void start(StartContext context) throws StartException {
                    for (ServiceName serviceName : pendingServices.keySet()) {
                        OSGiModule moduleMetaData = pendingServices.get(serviceName);
                        if (moduleMetaData.getStartLevel() != null) {
                            @SuppressWarnings("unchecked")
                            ServiceController<Bundle> controller = (ServiceController<Bundle>) serviceContainer.getRequiredService(serviceName);
                            Bundle bundle = controller.getValue();
                            StartLevel startLevel = injectedStartLevel.getValue();
                            startLevel.setBundleStartLevel(bundle, moduleMetaData.getStartLevel());
                            try {
                                bundle.start();
                            } catch (BundleException ex) {
                                log.errorf(ex, "Cannot start bundle: %s", bundle);
                            }
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.