TorqueBox 3.1.2

org.torquebox.core.component
Class ComponentResolver

java.lang.Object
  extended by org.torquebox.core.component.ComponentResolver

public class ComponentResolver
extends Object


Field Summary
static org.jboss.as.server.deployment.AttachmentKey<org.jboss.as.server.deployment.AttachmentList<Injectable>> ADDITIONAL_INJECTABLES
           
 
Constructor Summary
ComponentResolver(boolean alwaysReload)
           
 
Method Summary
protected  org.jruby.runtime.builtin.IRubyObject createComponent(org.jruby.Ruby runtime)
           
 ComponentInstantiator getComponentInstantiator()
           
 String getComponentName()
           
 Class<? extends AbstractRubyComponent> getComponentWrapperClass()
           
 Map<String,Object> getComponentWrapperOptions()
           
 Object[] getInitializeParams()
           
 org.jboss.msc.inject.Injector<Object> getInjector(String key)
           
 boolean isAlwaysReload()
           
protected  void prepareInjections(org.jruby.Ruby runtime)
           
 RubyComponent resolve(org.jruby.Ruby runtime)
           
 void setAlwaysNewInstance(boolean alwaysNewInstance)
           
 void setAlwaysReload(boolean alwaysReload)
           
 void setComponentInstantiator(ComponentInstantiator componentInstantiator)
           
 void setComponentName(String componentName)
           
 void setComponentWrapperClass(Class<? extends AbstractRubyComponent> wrapperClass)
           
 void setComponentWrapperOptions(Map<String,Object> componentWrapperOptions)
           
 void setInitializeParams(Map params)
           
 void setInitializeParams(Object[] initializeParams)
           
 void setNamespaceContextSelector(org.jboss.as.naming.context.NamespaceContextSelector namespaceContextSelector)
           
protected  RubyComponent wrapComponent(org.jruby.runtime.builtin.IRubyObject rubyComponent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADDITIONAL_INJECTABLES

public static org.jboss.as.server.deployment.AttachmentKey<org.jboss.as.server.deployment.AttachmentList<Injectable>> ADDITIONAL_INJECTABLES
Constructor Detail

ComponentResolver

public ComponentResolver(boolean alwaysReload)
Method Detail

resolve

public RubyComponent resolve(org.jruby.Ruby runtime)
                      throws Exception
Throws:
Exception

createComponent

protected org.jruby.runtime.builtin.IRubyObject createComponent(org.jruby.Ruby runtime)
                                                         throws Exception
Throws:
Exception

prepareInjections

protected void prepareInjections(org.jruby.Ruby runtime)
                          throws Exception
Throws:
Exception

setComponentName

public void setComponentName(String componentName)

getComponentName

public String getComponentName()

setComponentInstantiator

public void setComponentInstantiator(ComponentInstantiator componentInstantiator)

getComponentInstantiator

public ComponentInstantiator getComponentInstantiator()

setInitializeParams

public void setInitializeParams(Object[] initializeParams)

setInitializeParams

public void setInitializeParams(Map params)

getInitializeParams

public Object[] getInitializeParams()

setAlwaysReload

public void setAlwaysReload(boolean alwaysReload)

isAlwaysReload

public boolean isAlwaysReload()

setAlwaysNewInstance

public void setAlwaysNewInstance(boolean alwaysNewInstance)

setComponentWrapperClass

public void setComponentWrapperClass(Class<? extends AbstractRubyComponent> wrapperClass)

getComponentWrapperClass

public Class<? extends AbstractRubyComponent> getComponentWrapperClass()

setComponentWrapperOptions

public void setComponentWrapperOptions(Map<String,Object> componentWrapperOptions)

getComponentWrapperOptions

public Map<String,Object> getComponentWrapperOptions()

wrapComponent

protected RubyComponent wrapComponent(org.jruby.runtime.builtin.IRubyObject rubyComponent)
                               throws InstantiationException,
                                      IllegalAccessException
Throws:
InstantiationException
IllegalAccessException

setNamespaceContextSelector

public void setNamespaceContextSelector(org.jboss.as.naming.context.NamespaceContextSelector namespaceContextSelector)

getInjector

public org.jboss.msc.inject.Injector<Object> getInjector(String key)

TorqueBox 3.1.2

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.