Examples of load()


Examples of org.exolab.castor.persist.TransactionContext.load()

        tx = getTransaction();
        info = _scope.getPersistenceInfo( type );
        if ( info == null )
            throw new ClassNotPersistenceCapableException( Messages.format( "persist.classNotPersistenceCapable", type.getName() ) );

        return tx.load( info.engine, info.molder, identity, object, null );
    }
    public Object load( Class type, Complex identity )
            throws TransactionNotInProgressException, ObjectNotFoundException,
            LockNotGrantedException, PersistenceException {
   
View Full Code Here

Examples of org.exolab.jms.config.ConfigurationLoader.load()

    public JmsServer(String file) throws ServerException {
        version();

        ConfigurationLoader loader = new ConfigurationLoader();
        try {
            _config = loader.load(file);
        } catch (Exception exception) {
            throw new ServerException("Failed to read configuration: " + file,
                                      exception);
        }
    }
View Full Code Here

Examples of org.exoplatform.portal.config.DataStorage.load()

            // The only way to retrieve the information if the state is not transient is if we're within the portal context
            ExoContainer container = ExoContainerContext.getCurrentContainer();
            if (container instanceof PortalContainer) {
                DataStorage dataStorage = (DataStorage) container.getComponentInstanceOfType(DataStorage.class);
                try {
                    portlet = dataStorage.load(state, ApplicationType.PORTLET);
                } catch (Exception e) {
                    throw new XMLStreamException("Could not obtain portlet state.");
                }

                try {
View Full Code Here

Examples of org.exoplatform.portal.pom.data.Mapper.load()

        if (workspaceObject instanceof UIWindow) {
            UIWindow application = (UIWindow) workspaceObject;
            Mapper mapper = new Mapper(session);

            ApplicationData data = mapper.load(application);
            return data;
        }
        throw new NoSuchDataException("Could not load the application data specified by the ID: " + applicationStorageId);
    }
}
View Full Code Here

Examples of org.exoplatform.portal.pom.data.ModelDataStorage.load()

            // The only way to retrieve the information if the state is not transient is if we're within a portal context
            ExoContainer container = ExoContainerContext.getCurrentContainer();
            if (container instanceof PortalContainer) {
                ModelDataStorage dataStorage = (ModelDataStorage) container.getComponentInstanceOfType(ModelDataStorage.class);
                try {
                    gadget = dataStorage.load(state, ApplicationType.GADGET);
                } catch (Exception e) {
                    throw new XMLStreamException("Could not obtain gadget state from custom context.");
                }

                try {
View Full Code Here

Examples of org.exoplatform.services.common.DataReader.load()

   }

   public static synchronized XMLDocument createDocument(File file, String charset) throws Exception
   {
      DataReader reader = ServicesContainer.get(ServiceType.SOFT_REFERENCE, READER_ID, DataReader.class);
      return createDocument(reader.load(file), charset);
   }

}
View Full Code Here

Examples of org.fedorahosted.openprops.Properties.load()

    }

    public static Properties headerToProperties(String entries) {
        Properties result = new Properties();
        try {
            result.load(new StringReader(entries));
        } catch (IOException e) {
            throw new RuntimeException("unexpected IO exception", e);
        }
        return result;
    }
View Full Code Here

Examples of org.flexdock.docking.state.LayoutManager.load()

        PersistenceException {
        LayoutManager mgr = getLayoutManager();
        if (mgr == null)
            return false;

        return restore ? restoreLayout(true) : mgr.load();
    }

    /**
     * Synchronizes the application view with the current in-memory layout
     * model. This method defers processing to
View Full Code Here

Examples of org.fnlp.nlp.pipe.seq.templet.TempletGroup.load()

    AlphabetFactory factory;
    Pipe featurePipe;
    TempletGroup templets;

    templets = new TempletGroup();
    templets.load(templateFile);
    factory = AlphabetFactory.buildFactory();

    /**
     * 标签字典。转为0、1、2、...
     */
 
View Full Code Here

Examples of org.fnlp.ontology.CharClassDictionary.load()

    templets.add(new CharInStringTemplet(templets.gid++,0,1));
    templets.add(new CharInStringTemplet(templets.gid++,-2,2));
    templets.add(new StringTypeTemplet(templets.gid++));

    CharClassDictionary dsurname = new CharClassDictionary();
    dsurname.load("../data/knowledge/百家姓.txt", "姓");
    templets.add(new CharClassTemplet(templets.gid++, new CharClassDictionary[]{dsurname}));

    if (cl != null)
      factory = cl.getAlphabetFactory();
    else
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.