Examples of load()


Examples of li.cil.oc.api.network.Node.load()

    public static void readFromNBT(final SimpleComponentImpl self, NBTTagCompound nbt) {
        self.readFromNBT_OpenComputers(nbt);
        final Node node = node(self);
        if (node != null) {
            node.load(nbt.getCompoundTag("oc:node"));
        }
    }

    public static void writeToNBT(final SimpleComponentImpl self, NBTTagCompound nbt) {
        self.writeToNBT_OpenComputers(nbt);
View Full Code Here

Examples of lineage2.commons.configuration.ExProperties.load()

  public static ExProperties load(File file)
  {
    ExProperties result = new ExProperties();
    try
    {
      result.load(file);
    }
    catch (IOException e)
    {
      _log.error("", e);
    }
View Full Code Here

Examples of liquibase.change.Change.load()

        Change change = ChangeFactory.getInstance().create(value.getName());
        if (change == null) {
            return null;
        } else {
            try {
                change.load(value, resourceAccessor);
            } catch (ParsedNodeException e) {
                e.printStackTrace();
            }
            return change;
        }
View Full Code Here

Examples of liquibase.changelog.DatabaseChangeLog.load()

            DatabaseChangeLog changeLog = new DatabaseChangeLog(physicalChangeLogLocation);
            changeLog.setChangeLogParameters(changeLogParameters);
            ParsedNode databaseChangeLogNode = new ParsedNode(null, "databaseChangeLog");
            databaseChangeLogNode.setValue(rootList);

            changeLog.load(databaseChangeLogNode, resourceAccessor);

            return changeLog;
        } catch (Throwable e) {
            if (e instanceof ChangeLogParseException) {
                throw (ChangeLogParseException) e;
View Full Code Here

Examples of liquibase.serializer.LiquibaseSerializable.load()

                            }
                        } else if (LiquibaseSerializable.class.isAssignableFrom(collectionType)) {
                            List<ParsedNode> childNodes = new ArrayList<ParsedNode>(parsedNode.getChildren(null, param.getParameterName()));
                            for (ParsedNode childNode : childNodes) {
                                LiquibaseSerializable childObject = (LiquibaseSerializable) collectionType.newInstance();
                                childObject.load(childNode, resourceAccessor);

                                ((Collection) param.getCurrentValue(this)).add(childObject);

                            }
                        }
View Full Code Here

Examples of liquibase.sql.visitor.SqlVisitor.load()

                    if (dbms.size() > 0) {
                        sqlVisitor.setApplicableDbms(dbms);
                    }
                    sqlVisitor.setContexts(context);
                    sqlVisitor.setLabels(labels);
                    sqlVisitor.load(node, resourceAccessor);

                    addSqlVisitor(sqlVisitor);
                }
            }
View Full Code Here

Examples of lombok.val.load()

    private static Properties loadConfigurationFile() {
        val properties = new Properties();
        try (val propertiesInputStream = Configuration.class.getClassLoader().getResourceAsStream(CONFIG_FILE_NAME)) {
            if (propertiesInputStream != null) {
                properties.load(propertiesInputStream);
            }
        } catch (final IOException e) {
            log.log(Level.WARNING, "MByHave8 config is not in the classpath", e);
        }
        return properties;
View Full Code Here

Examples of me.kafeitu.demo.activiti.util.LinkedProperties.load()

        StringBuilder sb = new StringBuilder();
        try {
            ClassLoader loader = Thread.currentThread().getContextClassLoader();
            inputStream = loader.getResourceAsStream("application-files.properties");
            Properties props = new LinkedProperties();
            props.load(inputStream);
            Set<Object> fileKeySet = props.keySet();
            for (Object obj : fileKeySet) {
                logger.debug("读取文件:key={}, value={}", obj, props.getProperty(obj.toString()));
                sb.append("<span style='color:red;font-weight:bold;'>" + props.getProperty(obj.toString()) + "</span><br/>");
                if (props.getProperty(obj.toString()).startsWith("file:")) {
View Full Code Here

Examples of me.neatmonster.spacebukkit.utilities.PropertiesFile.load()

     */
    public static String getCase(final String playerName) {
        try {
            final PropertiesFile propertiesFile = new PropertiesFile(
                    new File("SpaceModule", "players.properties").getPath());
            propertiesFile.load();
            final String savedPlayerName = propertiesFile.getString(playerName.toLowerCase());
            propertiesFile.save();
            if (savedPlayerName != null && !savedPlayerName.equals(""))
                return savedPlayerName;
        } catch (IOException e) {
View Full Code Here

Examples of me.prettyprint.hom.EntityManagerImpl.load()

    em.save(pojo1);

    // do some stuff

    MyPojo pojo2 = em.load(MyPojo.class, pojo1.getId());

    // do some more stuff

    System.out.println( "Color = " + pojo2.getColor() );
  }
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.