In package com.eden.orchid.api.registration

class com.eden.orchid.api.registration.OrchidModule

Orchid is built on top of the Guice Dependency Injection framework by Google. This framework allows for runtime discovery and injection of dependencies and multibindings, making it ideal for a runtime-plugin-driven framework like Orchid. The OrchidModule adds several convenience methods useful for registering classes within Orchid. It is not necessary to extend OrchidModule, any class that implements the Guice Module interface and has a public no-arg constructor can be used with Orchid, allowing for maximum interoperability with other libraries. In addition, since Guice is a complete implementation of the JSR-330 interface, even libraries that have been set up for Dependency Injection apart from Guice can be used seamlessly simply by adding the necessary bindings within a Guice Module.

Constructors

public <init>()

Orchid is built on top of the Guice Dependency Injection framework by Google. This framework allows for runtime discovery and injection of dependencies and multibindings, making it ideal for a runtime-plugin-driven framework like Orchid. The OrchidModule adds several convenience methods useful for registering classes within Orchid. It is not necessary to extend OrchidModule, any class that implements the Guice Module interface and has a public no-arg constructor can be used with Orchid, allowing for maximum interoperability with other libraries. In addition, since Guice is a complete implementation of the JSR-330 interface, even libraries that have been set up for Dependency Injection apart from Guice can be used seamlessly simply by adding the necessary bindings within a Guice Module.

Parameters:
  • No parameters

Methods

public open _bind(java.lang.Class((com.eden.orchid.api.registration.OrchidModule._bind.T))): AnnotatedBindingBuilder

Parameters:
  • clazz:
public final addToSet(java.lang.Class((com.eden.orchid.api.registration.OrchidModule.addToSet.T))): Unit

Parameters:
  • setClass:
public final addToSet(java.lang.Class((com.eden.orchid.api.registration.OrchidModule.addToSet.T)), kotlin.Array((java.lang.Class((com.eden.orchid.api.registration.OrchidModule.addToSet.T))))): Unit

Parameters:
  • setClass:
  • objectClasses:
public final addToSet(java.lang.Class((com.eden.orchid.api.registration.OrchidModule.addToSet.T)), kotlin.Array((com.eden.orchid.api.registration.OrchidModule.addToSet.T))): Unit

Parameters:
  • setClass:
  • objects: com.eden.orchid.api.registration.OrchidModule.addToSet.T
public final withResources(kotlin.Int): Unit

Parameters:
  • priority: Int
public open static of(java.lang.Class((com.eden.orchid.api.registration.OrchidModule.of.T)), com.eden.orchid.api.registration.OrchidModule.of.T): AbstractModule

Parameters:
  • injectedClass:
  • value: com.eden.orchid.api.registration.OrchidModule.of.T

Extensions

public final inline bind(com.eden.orchid.api.registration.OrchidModule):

Parameters:
  • No parameters
public final inline addToSet(com.eden.orchid.api.registration.OrchidModule, kotlin.Array((kotlin.reflect.KClass((com.eden.orchid.utilities.addToSet.T))))): Unit

Parameters:
  • objectClasses: KClass
public final inline addToSet(com.eden.orchid.api.registration.OrchidModule): Unit

Parameters:
  • No parameters
public final inline addToSet(com.eden.orchid.api.registration.OrchidModule, kotlin.Array((com.eden.orchid.utilities.addToSet.T))): Unit

Parameters:
  • objects: com.eden.orchid.utilities.com.eden.orchid.api.registration.OrchidModule.addToSet.T