Class: VertxStomp::DestinationFactory
- Inherits:
-
Object
- Object
- VertxStomp::DestinationFactory
- Defined in:
- /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/destination_factory.rb
Overview
Interface implemented to customize the destination creation.
Instance Method Summary (collapse)
-
- (::VertxStomp::Destination) create(vertx = nil, name = nil)
Creates a destination for the given address.
Instance Method Details
- (::VertxStomp::Destination) create(vertx = nil, name = nil)
Creates a destination for the given address.
22 23 24 25 26 27 |
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/destination_factory.rb', line 22 def create(vertx=nil,name=nil) if vertx.class.method_defined?(:j_del) && name.class == String && !block_given? return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:create, [Java::IoVertxCore::Vertx.java_class,Java::java.lang.String.java_class]).call(vertx.j_del,name),::VertxStomp::Destination) end raise ArgumentError, "Invalid arguments when calling create(vertx,name)" end |