Package org.drools.marshalling

Examples of org.drools.marshalling.ObjectMarshallingStrategy.marshal()


        if ( object != null ) {
            ObjectMarshallingStrategy strategy = objectMarshallingStrategyStore.getStrategyObject( object );

            Integer index = context.getStrategyIndex( strategy );
            _handle.setStrategyIndex( index.intValue() );
            _handle.setObject( ByteString.copyFrom( strategy.marshal( context.strategyContext.get( strategy ),
                                                                      context,
                                                                      object ) ) );
        }

        return _handle.build();
View Full Code Here


        if ( object != null ) {
            ObjectMarshallingStrategy strategy = objectMarshallingStrategyStore.getStrategyObject( object );

            Integer index = context.getStrategyIndex( strategy );
            _handle.setStrategyIndex( index.intValue() );
            _handle.setObject( ByteString.copyFrom( strategy.marshal( context.strategyContext.get( strategy ),
                                                                      context,
                                                                      object ) ) );
        }

        return _handle.build();
View Full Code Here

        if (object != null) {
            ObjectMarshallingStrategy strategy = objectMarshallingStrategyStore.getStrategyObject(object);

            Integer index = context.getStrategyIndex(strategy);
            _handle.setStrategyIndex(index.intValue());
            _handle.setObject(ByteString.copyFrom(strategy.marshal(context.strategyContext.get(strategy),
                    context,
                    object)));
        }

        return _handle.build();
View Full Code Here

        if (object != null) {
            ObjectMarshallingStrategy strategy = objectMarshallingStrategyStore.getStrategyObject(object);

            Integer index = context.getStrategyIndex(strategy);
            _handle.setStrategyIndex(index.intValue());
            _handle.setObject(ByteString.copyFrom(strategy.marshal(context.strategyContext.get(strategy),
                    context,
                    object)));
        }

        return _handle.build();
View Full Code Here

      ObjectMarshallingStrategy strategy = objectMarshallingStrategyStore
          .getStrategyObject(object);

      Integer index = context.getStrategyIndex(strategy);
      _handle.setStrategyIndex(index.intValue());
      _handle.setObject(ByteString.copyFrom(strategy.marshal(
          context.strategyContext.get(strategy), context, object)));
    }

    return _handle.build();
  }
View Full Code Here

        if ( object != null ) {
            ObjectMarshallingStrategy strategy = objectMarshallingStrategyStore.getStrategyObject( object );

            Integer index = context.getStrategyIndex( strategy );
            _handle.setStrategyIndex( index.intValue() );
            _handle.setObject( ByteString.copyFrom( strategy.marshal( context.strategyContext.get( strategy ),
                                                                      context,
                                                                      object ) ) );
        }

        return _handle.build();
View Full Code Here

        if (object != null) {
            ObjectMarshallingStrategy strategy = objectMarshallingStrategyStore.getStrategyObject(object);

            Integer index = context.getStrategyIndex(strategy);
            _handle.setStrategyIndex(index.intValue());
            _handle.setObject(ByteString.copyFrom(strategy.marshal(context.strategyContext.get(strategy),
                    context,
                    object)));
        }

        return _handle.build();
View Full Code Here

            if( index == null ) {
                index = Integer.valueOf( context.usedStrategies.size() );
                context.usedStrategies.put( strategyClassName, index );
            }
            _handle.setStrategyIndex( index.intValue() );
            _handle.setObject( ByteString.copyFrom( strategy.marshal( context,
                                                                      object ) ) );
        }

        return _handle.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.