String destinationPattern = (String) config.get( "route" );
String rubyClassName = (String) config.get( "class" );
Map<String, String> stompletConfig = (Map<String, String>) config.get( "config" );
RubyStompletMetaData metaData = new RubyStompletMetaData( name );
metaData.setDestinationPattern( destinationPattern );
metaData.setRubyClassName( rubyClassName );
metaData.setRubyRequirePath( StringUtils.underscore( rubyClassName.trim() ) );
metaData.setStompletConfig( stompletConfig );
metaData.attachTo( unit );
}
}
}