Examples of load()


Examples of org.openengsb.core.api.persistence.ConfigPersistenceService.load()

    }

    private List<ContextConfiguration> getContextConfigurationsOrEmptyOnError(Map<String, String> metaData) {
        try {
            ConfigPersistenceService persistence = getConfigPersistenceService();
            return persistence.load(metaData);
        } catch (Exception e) {
            LOGGER.error("Error loading context configuration from configuration persistence", e);
            return Collections.emptyList();
        }
    }
View Full Code Here

Examples of org.openengsb.labs.paxexam.karaf.container.internal.KarafPropertiesFile.load()

    }

    @Override
    public void adaptDistributionToStartExam(File karafHome, File featuresXmlFile) throws IOException {
        KarafPropertiesFile karafPropertiesFile = new KarafPropertiesFile(karafHome, Constants.FEATURES_CFG_LOCATION);
        karafPropertiesFile.load();
        String finalFilePath = ",file:" + featuresXmlFile.toString().replaceAll("\\\\", "/").replaceAll(" ", "%20");
        karafPropertiesFile.extend("featuresRepositories", finalFilePath);
        karafPropertiesFile.extend("featuresBoot", ",exam");
        karafPropertiesFile.store();
    }
View Full Code Here

Examples of org.openide.util.EditableProperties.load()

    private EditableProperties getProperties(String relativePath) throws IOException {
        EditableProperties properties = new EditableProperties(false);
        InputStream in = null;
        try {
            in = new FileInputStream(new File(sourceRoot, relativePath));
            properties.load(in);
        } finally {
            if (in != null) {
                in.close();
            }
        }
View Full Code Here

Examples of org.openmim.mn2.MessagingNetwork2.load()

    public void startReconnecting(Context context, StatusRoomListenerExternal statusRoomListenerExternal) {
        List<IMNetworkBean> nets=context.getConfigurationBean().getNetworksConfigured();
        if(nets!=null)for (IMNetworkBean bean : nets) {
            MessagingNetwork2 net=getMessagingNetwork2ByType(bean.getType());
            net.load(context, imListener, statusRoomListenerExternal);
            net.startReconnecting();
        }
    }

    public List<MessagingNetwork2> getNetworks(){
View Full Code Here

Examples of org.openpnp.spi.JobProcessor.load()

        delegate.expectMove("Move N2 to R2, Safe-Z", n2, new Location(LengthUnit.Millimeters, 00, 20, 0, 90), 1.0);
        delegate.expectMove("Move N2 to R2, Z", n2, new Location(LengthUnit.Millimeters, 00, 20, 0.825500, 90), 1.0);
        delegate.expectPlace(n2);
        delegate.expectMove("Move N2 to R2, Safe-Z", n2, new Location(LengthUnit.Millimeters, 00, 20, 0, 90), 1.0);
       
        jobProcessor.load(job);
        machine.setEnabled(true);
        synchronized (notifier) {
            jobProcessor.start();
            notifier.wait();
        }
View Full Code Here

Examples of org.opensaml.xml.XMLConfigurator.load()

            InputStream ins = Configuration.class.getResourceAsStream(config);
            if (ins == null) {
                //some are from us
                ins = OpenSAMLBootstrap.class.getResourceAsStream(config);
            }
            configurator.load(ins);
        }
    }
   
    protected static void initializeParserPool() throws ConfigurationException {
        StaticBasicParserPool pp = new StaticBasicParserPool();
View Full Code Here

Examples of org.openstreetmap.josm.data.osm.Node.load()

            nd.setCoor(new LatLon(Double.parseDouble(lat), Double.parseDouble(lon)));
        }
        readCommon(nd);
        Node n = new Node(nd.getId(), nd.getVersion());
        n.setVisible(nd.isVisible());
        n.load(nd);
        externalIdMap.put(nd.getPrimitiveId(), n);
        while (true) {
            int event = parser.next();
            if (event == XMLStreamConstants.START_ELEMENT) {
                if ("tag".equals(parser.getLocalName())) {
View Full Code Here

Examples of org.openstreetmap.josm.data.osm.OsmPrimitive.load()

            boolean created = newPrimitive == null;
            if (created) {
                newPrimitive = primitive.getType().newInstance(primitive.getUniqueId(), true);
            }
            if (newPrimitive instanceof Node && !primitive.isIncomplete()) {
                newPrimitive.load(primitive);
            }
            if (created) {
                hull.addPrimitive(newPrimitive);
            }
        }
View Full Code Here

Examples of org.openstreetmap.josm.data.osm.Relation.load()

    protected Relation parseRelation() throws XMLStreamException {
        RelationData rd = new RelationData();
        readCommon(rd);
        Relation r = new Relation(rd.getId(), rd.getVersion());
        r.setVisible(rd.isVisible());
        r.load(rd);
        externalIdMap.put(rd.getPrimitiveId(), r);

        Collection<RelationMemberData> members = new ArrayList<>();
        while (true) {
            int event = parser.next();
View Full Code Here

Examples of org.openstreetmap.josm.data.osm.Way.load()

    protected Way parseWay() throws XMLStreamException {
        WayData wd = new WayData();
        readCommon(wd);
        Way w = new Way(wd.getId(), wd.getVersion());
        w.setVisible(wd.isVisible());
        w.load(wd);
        externalIdMap.put(wd.getPrimitiveId(), w);

        Collection<Long> nodeIds = new ArrayList<>();
        while (true) {
            int event = parser.next();
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.