private void handleNullMarshaller ( ) { try { // First see if marshalling is in the class path - if so we can use the generic marshaller // We have to use the commons class loader, since marshalling is its dependency Class . forName ( "org.jboss.marshalling.river.RiverMarshaller" , false , Util . class . getClassLoader ( ) ) ; marshallerClass = GenericJBossMarshaller . class ; } catch ( ClassNotFoundException e ) { log . tracef ( "JBoss Marshalling is not on the class path - Only byte[] instances can be marshalled" ) ; // Otherwise we fall back to a byte[] only marshaller marshaller = BytesOnlyMarshaller . INSTANCE ; } }
Method that handles default marshaller - needed as a placeholder