TorqueBox 3.1.2

org.torquebox.cdi.injection
Class CDIInjectable

java.lang.Object
  extended by org.torquebox.core.injection.SimpleNamedInjectable
      extended by org.torquebox.cdi.injection.CDIInjectable
All Implemented Interfaces:
Injectable

public class CDIInjectable
extends SimpleNamedInjectable


Constructor Summary
CDIInjectable(String name, boolean generic)
           
 
Method Summary
 String getKey()
          Retrieve the lookup key for this injectable.
 String getPackageKeyPart(String packageName)
           
 org.jboss.msc.service.ServiceName getServiceName(org.jboss.msc.service.ServiceTarget serviceTarget, org.jboss.as.server.deployment.DeploymentUnit unit)
          Retrieve the MSC ServiceName of the actual underlying injectable asset.
 
Methods inherited from class org.torquebox.core.injection.SimpleNamedInjectable
getName, getType, isGeneric, isOptional, toString, wrapWithConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CDIInjectable

public CDIInjectable(String name,
                     boolean generic)
Method Detail

getKey

public String getKey()
Description copied from interface: Injectable
Retrieve the lookup key for this injectable.

The key may not match the name, given the way expressions evaluate at runtime within the Ruby * interpreter (specifically, how the constant 'org.foo.Someclass' translates to a string.

Specified by:
getKey in interface Injectable
Overrides:
getKey in class SimpleNamedInjectable
Returns:
The key used to index this injectable in the Ruby interpreter.

getPackageKeyPart

public String getPackageKeyPart(String packageName)

getServiceName

public org.jboss.msc.service.ServiceName getServiceName(org.jboss.msc.service.ServiceTarget serviceTarget,
                                                        org.jboss.as.server.deployment.DeploymentUnit unit)
                                                 throws ClassNotFoundException
Description copied from interface: Injectable
Retrieve the MSC ServiceName of the actual underlying injectable asset.

Parameters:
serviceTarget - The service target if the injectable needs to create new services.
Returns:
The ServiceName of the injectable item.
Throws:
ClassNotFoundException

TorqueBox 3.1.2

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