Package java.io

Examples of java.io.Serializable


               if (fields == null)
                  fields = new DefaultFieldsImpl();

               if( propertyInfo instanceof Serializable )
               {
                  Serializable pinfo = Serializable.class.cast(propertyInfo);
                  fields.setField(Fields.PROPERTY_INFO, pinfo);
               }

               String propertyName = propertyInfo.getName();
               if (managementProperty != null)
View Full Code Here


      flush();
   }

   public Serializable get(Serializable key)
   {
      Serializable value = entryMap.get(category, key);
      log.debug("Get: "+key+", value: "+value);
      return value;
   }
View Full Code Here

      if(keys == null ) return;
      // Notify the entries of their removal
      Iterator iter = keys.iterator();
      while( iter.hasNext() )
      {
         Serializable key = (Serializable) iter.next();
         try
         {
            entryMap.remove(category, key);
         }
         catch(Exception e)
View Full Code Here

      if( cipherAlgorithm == null )
         return challenge;
      Object sealedObject = null;
      try
      {
         Serializable data = (Serializable) challenge;
         Object tmpKey = CryptoUtil.createSecretKey(cipherAlgorithm, key);
         sealedObject = CryptoUtil.createSealedObject(cipherAlgorithm, tmpKey, cipherIV, data);
      }
      catch(Exception e)
      {
View Full Code Here

                }
                else if (element.getAttribute(AL_SERIALIZED_ATTRIBUTE).toLowerCase().equals(AL_TRUE_VALUE)) {
                  
                   // (b) serialized value - decode the HexString
                   String hexStr = getElementContent(element);
                   Serializable obj = decodeFromHexString(hexStr);
                  
                   if (obj == null) {
                      throw new Exception("Failed to deserialize attribute '" + name + "'");
                   }
                   else {
View Full Code Here

                                    : (h2 - '0'));
         
          bytes[i] = (byte)(d1 * 16 + d2); // 255 max
      }
     
      Serializable retn = null;
      try
      {
         // Use ObjectInputStreamExt that will utilise the
         // ThreadContextClassLoader to deserialize objects
         ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
View Full Code Here

      to the HATarget must be the wrappedJmxInvokerName so that different
      more than one HttpProxyFactoryHA may be configured for the same
      realJmxInvokerName.
      */
      checkInvokerURL();
      Serializable invokerStub = super.getInvokerURL();
      invokerTarget = new HATarget(partition, wrappedJmxInvokerName.toString(),
         invokerStub, HATarget.MAKE_INVOCATIONS_WAIT);
      log.debug("Created invoker: "+invokerTarget);
      // Create and register the invoker wrapper
      MBeanServer mbeanServer = super.getServer();
View Full Code Here

    }
   
    @SuppressWarnings("unchecked")
    private T findNextItem() {
        for (; index < keysForGroup.length; index++) {
            Serializable itemAt = keysForGroup[index];
            T retrieve = (T) principalContainer.retrievePrincipal(itemAt.toString());
            if (retrieve != null) {
                index++;
                return retrieve;
            }
        }
View Full Code Here

   * @param property
   * @throws AssertionError
   */
  private void addPropertyToCache(Map<String, Serializable> acache, Property property) throws AssertionError {
    String propertyName = property.getName();
    Serializable value;
    if (propertyName.equals(ATTEMPTS)) {
      value = new Integer(property.getLongValue().intValue());
    } else if (propertyName.equals(SCORE)) {
      value = property.getFloatValue();
    } else if (propertyName.equals(PASSED)) {
View Full Code Here

  private void moveNode(NodeRef targetRef, List<String> targetPath, List<String> childrenNames, NodeRef nodeRefToMove)
      throws FileNotFoundException {
    if (targetPath.contains(nodeRefToMove.toString())) {
      throw new JibeRuntimeException(ClipboardSupport.class, "circularRef");
    }
    Serializable name = serviceRegistry.getNodeService().getProperty(nodeRefToMove, ContentModel.PROP_NAME);
    if (childrenNames.contains(name)) {
      throw new JibeRuntimeException(ClipboardSupport.class, "allreadyExists", name);
    }
    serviceRegistry.getFileFolderService().move(nodeRefToMove, targetRef, null);
  }
View Full Code Here

TOP

Related Classes of java.io.Serializable

Copyright © 2018 www.massapicom. 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.