|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.inject.AbstractModule
org.mule.module.guice.AbstractMuleGuiceModule
public abstract class AbstractMuleGuiceModule
A mule specific Guice module that allows users to override the configureMuleContext(org.mule.api.MuleContext) method
to do any Mule configuration such as register notifications. Most users will not need to override this method so the
AbstractModule can be used.
Provides annotation.
Its recommended that you put all your Mule configuration objects in a separate Guice module.
| Field Summary | |
|---|---|
protected MuleContext |
muleContext
|
| Constructor Summary | |
|---|---|
AbstractMuleGuiceModule()
|
|
| Method Summary | |
|---|---|
protected void |
configure()
|
void |
configureMuleContext(MuleContext muleContext)
|
protected EndpointBuilder |
createEndpointBuilder(String uri)
Creates an EndpointBuilder instance for the endpoint uri. |
protected abstract void |
doConfigure()
|
protected void |
initialiseObject(Object o)
A convenience method that will register an object in the registry using its hashcode as the key. |
| Methods inherited from class com.google.inject.AbstractModule |
|---|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MuleContext muleContext
| Constructor Detail |
|---|
public AbstractMuleGuiceModule()
| Method Detail |
|---|
public void configureMuleContext(MuleContext muleContext)
protected final void configure()
configure in class com.google.inject.AbstractModule
protected abstract void doConfigure()
throws Exception
Exception
protected EndpointBuilder createEndpointBuilder(String uri)
throws MuleException
EndpointBuilder instance for the endpoint uri. The builder can be used to add
further configuration options and then used to create either OutboundEndpoint or
InboundEndpoint instances.
uri - the address URI for the endpoint
MuleException - if the builder cannt be created for any reason
protected void initialiseObject(Object o)
throws RegistrationException
o - the object to register and initialise it
RegistrationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||