TorqueBox 3.1.2

org.torquebox.core.injection
Class SimpleNamedInjectable

java.lang.Object
  extended by org.torquebox.core.injection.SimpleNamedInjectable
All Implemented Interfaces:
Injectable
Direct Known Subclasses:
CDIInjectable, ConnectionFactoryInjectable, DataSourceInfoInjectable, DeploymentUnitInjectable, JNDIInjectable, RuntimeInjectionAnalyzerInjectable, ServiceInjectable, ServiceInjectable, ServiceRegistryInjectable, ServiceTargetInjectable, StompEndpointBindingInjectable, TransactionManagerInjectable, XaConnectionFactoryInjectable

public abstract class SimpleNamedInjectable
extends Object
implements Injectable


Constructor Summary
SimpleNamedInjectable(String type, String name, boolean generic)
           
SimpleNamedInjectable(String type, String name, boolean generic, boolean optional)
           
 
Method Summary
 String getKey()
          Retrieve the lookup key for this injectable.
 String getName()
          Retrieve the specific name of this injectable.
 String getType()
          Retrieve the type of the injectable, typically related-to, if not identical-to, the originating InjectableHandler's type.
 boolean isGeneric()
           
 boolean isOptional()
           
 String toString()
           
protected  org.jboss.msc.service.ServiceName wrapWithConverter(org.jboss.as.server.deployment.DeploymentPhaseContext context, org.jboss.msc.service.ServiceName serviceName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.torquebox.core.injection.analysis.Injectable
getServiceName
 

Constructor Detail

SimpleNamedInjectable

public SimpleNamedInjectable(String type,
                             String name,
                             boolean generic)

SimpleNamedInjectable

public SimpleNamedInjectable(String type,
                             String name,
                             boolean generic,
                             boolean optional)
Method Detail

isGeneric

public boolean isGeneric()
Specified by:
isGeneric in interface Injectable

isOptional

public boolean isOptional()
Specified by:
isOptional in interface Injectable

getType

public String getType()
Description copied from interface: Injectable
Retrieve the type of the injectable, typically related-to, if not identical-to, the originating InjectableHandler's type.

Specified by:
getType in interface Injectable
Returns:

getName

public String getName()
Description copied from interface: Injectable
Retrieve the specific name of this injectable.

Specified by:
getName in interface Injectable
Returns:
The name.

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
Returns:
The key used to index this injectable in the Ruby interpreter.

toString

public String toString()
Overrides:
toString in class Object

wrapWithConverter

protected org.jboss.msc.service.ServiceName wrapWithConverter(org.jboss.as.server.deployment.DeploymentPhaseContext context,
                                                              org.jboss.msc.service.ServiceName serviceName)

TorqueBox 3.1.2

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