Examples of update()


Examples of com.sun.jersey.core.spi.component.ProviderServices.update()

        // Validate the resource config
        this.resourceConfig.validate();

        if (updateRequired) {
            // Check if application modified provider classes or singletons
            providerServices.update(resourceConfig.getProviderClasses(),
                    resourceConfig.getProviderSingletons(), injectableFactory);
        }

        // Obtain all the templates
        this.templateContext = new TemplateFactory(providerServices);
View Full Code Here

Examples of com.sun.jersey.samples.optimisticconcurrency.ItemData.update()

        synchronized (id) {
            int currentVersion = id.getVersion();
            if (currentVersion > version) {
                throw new ConflictException("Conflict");
            }
            id.update(headers.getMediaType(), in);
        }
       
    }   
}
View Full Code Here

Examples of com.sun.messaging.jmq.io.MetricCounters.update()

  MetricCounters mc = (MetricCounters)deadTotalsByService.get(service);
  if (mc == null) {
      mc = new MetricCounters();
      deadTotalsByService.put(service, mc);
  }
        mc.update(counters);
    }

    public synchronized void reset() {
        deadTotalsByService.clear();
        lastSample = new MetricCounters();
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.core.Destination.update()

                    d.setXMLSchemaUriList(info.XMLSchemaUriList);
                }
                if (info.isModified(info.RELOAD_XML_SCHEMA_ON_FAILURE)) {
                    d.setReloadXMLSchemaOnFailure(info.reloadXMLSchemaOnFailure);
                }
                d.update();
             
                // audit logging for create destination
                Globals.getAuditSession().destinationOperation(
                    con.getUserName(), con.remoteHostString(),MQAuditSession.CREATE_DESTINATION,
                    d.isQueue()?MQAuditSession.QUEUE:MQAuditSession.TOPIC,
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.core.PacketReference.update()

                            states[i] = Globals.getStore().getInterestState(
                                        dst, pr.getSysMessageID(), consumers[i]);
                        }
                    }

                    pr.update(consumers, states, false);

                    // OK deal w/ transsactions
                    // LKS - XXX
                    ExpirationInfo ei = pr.getExpiration();
                    if (ei != null && d.expireReaper != null) {
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.persist.jdbc.comm.BaseDAO.update()

                sessionDAO.insert( conn, brokerID, new UID().longValue(), true );
            }
        }

        PropertyDAO dao = daoFactory.getPropertyDAO();
        dao.update( conn, STORE_PROPERTY_SUPPORT_JMSBRIDGE, Boolean.valueOf(true));
    }

    static void updateStoreVersion410IfNecessary(Connection conn)
        throws BrokerException {
View Full Code Here

Examples of com.sun.midp.crypto.MessageDigest.update()

    public static byte[] getHash(byte[] data, int offset, int length) {

        byte[] tmp = new byte[20];
        try {
            MessageDigest md = MessageDigest.getInstance("SHA-1");
            md.update(data, offset, length);
            md.digest(tmp, 0, tmp.length);
        } catch (GeneralSecurityException e) {
            // algorithm not found - not in this implementation
            throw new RuntimeException(
                "SHA-1 algorithm for MessageDigest not supported");
View Full Code Here

Examples of com.sun.star.text.XDocumentIndex.update()

            // Get the XDocumentIndex interface of the Index
            XDocumentIndex xDocIndex = (XDocumentIndex) UnoRuntime.queryInterface(
                XDocumentIndex.class, xIndex );
           
            // And call it's update method
            xDocIndex.update();
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
View Full Code Here

Examples of com.sun.star.util.XUpdatable.update()

                Object oTextField = xEnum.nextElement();           
                XServiceInfo xSI = (XServiceInfo) UnoRuntime.queryInterface(XServiceInfo.class, oTextField);
               
                if (xSI.supportsService("com.sun.star.text.TextField.ExtendedUser")) {                 
                    XUpdatable xUp = (XUpdatable) UnoRuntime.queryInterface(XUpdatable.class, oTextField);
                    xUp.update();                      
                }
                if (xSI.supportsService("com.sun.star.text.TextField.User")) {                 
                    XUpdatable xUp = (XUpdatable) UnoRuntime.queryInterface(XUpdatable.class, oTextField);
                    xUp.update();                      
                }
View Full Code Here

Examples of com.sun.xml.ws.rx.rm.policy.RmConfigurator.update()

                if (!rmAssertion.isCompatibleWith(rmFeatureBuilder.getProtocolVersion())) {
                    LOGGER.warning(LocalizationMessages.WSRM_1009_INCONSISTENCIES_IN_POLICY(rmAssertion.getName(), rmFeatureBuilder.getProtocolVersion()));
                    // TODO replace warning with exception in Metro >2.0:
                    // throw new WebServiceException(/*message*/);
                }
                rmFeatureBuilder = rmAssertion.update(rmFeatureBuilder);
            }
        } // next assertion
        // next assertion
        return rmFeatureBuilder.build();
    }
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.