Class: VertxStomp::DestinationFactory
- Inherits:
-
Object
- Object
- VertxStomp::DestinationFactory
- Defined in:
- /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/destination_factory.rb
Instance Method Summary (collapse)
- - (Object) create(vertx = nil, name = nil)
-
- (DestinationFactory) initialize(j_del)
constructor
A new instance of DestinationFactory.
- - (Object) j_del
Constructor Details
- (DestinationFactory) initialize(j_del)
Returns a new instance of DestinationFactory
10 11 12 |
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/destination_factory.rb', line 10 def initialize(j_del) @j_del = j_del end |
Instance Method Details
- (Object) create(vertx = nil, name = nil)
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 |
- (Object) j_del
15 16 17 |
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-stomp/destination_factory.rb', line 15 def j_del @j_del end |