Package org.jboss.as.core.model.test

Examples of org.jboss.as.core.model.test.LegacyModelInitializerEntry


    }

    @Override
    public byte[] serializeLegacyModelInitializerEntry(Object object) throws IOException {
        //Happens in the app classloader
        LegacyModelInitializerEntry entry = (LegacyModelInitializerEntry)object;
        ModelNode node = new ModelNode();
        if (entry.getParentAddress() != null) {
            node.get(PARENT_ADDRESS).set(entry.getParentAddress().toModelNode());
        }
        node.get(RELATIVE_RESOURCE_ADDRESS).set(PathAddress.pathAddress(entry.getRelativeResourceAddress()).toModelNode());
        if (entry.getModel() != null) {
            node.get(MODEL_NODE).set(entry.getModel());
        }
        return serializeModelNode(node);
    }
View Full Code Here


        PathElement relativeResourceAddress = PathAddress.pathAddress(node.get(RELATIVE_RESOURCE_ADDRESS)).getElement(0);
        ModelNode model = null;
        if (node.hasDefined(MODEL_NODE)) {
            model = node.get(MODEL_NODE);
        }
        return new LegacyModelInitializerEntry(parentAddress, relativeResourceAddress, model);
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.core.model.test.LegacyModelInitializerEntry

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.