Package org.jboss.as.osgi.parser.OSGiSubsystemState

Examples of org.jboss.as.osgi.parser.OSGiSubsystemState.Activation


    }

    @Override
    public void writeContent(final XMLExtendedStreamWriter streamWriter) throws XMLStreamException {
        synchronized (this) {
            Activation policy = subsystemState.getActivationPolicy();
            streamWriter.writeAttribute(Attribute.ACTIVATION.getLocalName(), policy.name().toLowerCase());

            Map<String, Object> properties = subsystemState.getProperties();
            if (properties.isEmpty() == false) {
                streamWriter.writeStartElement(Element.PROPERTIES.getLocalName());
                for (Map.Entry<String, Object> entry : properties.entrySet()) {
View Full Code Here


        String value = SystemPropertyActions.getProperty("jboss.protocol.handler.modules", "org.jboss.osgi.framework");
        if (!value.equals("org.jboss.osgi.framework"))
            value = value + "|org.jboss.osgi.framework";
        System.setProperty("jboss.protocol.handler.modules", value);

        Activation policy = subsystemState.getActivationPolicy();
        BatchBuilder batchBuilder = updateContext.getBatchBuilder();
        Configuration.addService(batchBuilder, subsystemState);
        BundleManagerService.addService(batchBuilder);
        FrameworkService.addService(batchBuilder, policy);
        PackageAdminService.addService(batchBuilder);
View Full Code Here

            throws XMLStreamException {

        switch (Namespace.forUri(reader.getNamespaceURI())) {
            case OSGI_1_0: {
                // Handle attributes
                Activation value = null;
                int count = reader.getAttributeCount();
                for (int i = 0; i < count; i++) {
                    final String attrValue = reader.getAttributeValue(i);
                    if (reader.getAttributeNamespace(i) != null) {
                        throw ParseUtils.unexpectedAttribute(reader, i);
View Full Code Here

TOP

Related Classes of org.jboss.as.osgi.parser.OSGiSubsystemState.Activation

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.