Java Code Examples for org.jboss.as.controller.ModelVersion#fromString()

The following examples show how to use org.jboss.as.controller.ModelVersion#fromString() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KnownVersions.java    From wildfly-core with GNU Lesser General Public License v2.1 5 votes vote down vote up
private static void addSubsystemVersion(Map<String, Map<ModelVersion, ModelVersion>> map, String subsystem, String subsystemVersion, String coreVersion) {
    ModelVersion subsystemModelVersion = ModelVersion.fromString(subsystemVersion);
    ModelVersion coreModelVersion = ModelVersion.fromString(coreVersion);
    Map<ModelVersion, ModelVersion> versionMap = map.get(subsystem);
    if (versionMap == null) {
        versionMap = new HashMap<ModelVersion, ModelVersion>();
        map.put(subsystem, versionMap);
    }
    versionMap.put(subsystemModelVersion, coreModelVersion);
}
 
Example 2
Source File: ObjectSerializerImpl.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public Object deserializeModelVersion(String object) {
    //Happens in the child classloader
    return ModelVersion.fromString(object);
}
 
Example 3
Source File: ObjectSerializerImpl.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public Object deserializeModelVersion(String object) {
    //Happens in the child classloader
    return ModelVersion.fromString(object);
}