TorqueBox 3.1.2

org.torquebox.core.injection.analysis
Interface Injectable

All Known Implementing Classes:
CDIInjectable, ConnectionFactoryInjectable, DataSourceInfoInjectable, DeploymentUnitInjectable, DestinationInjectable, JNDIInjectable, RuntimeInjectionAnalyzerInjectable, ServiceInjectable, ServiceInjectable, ServiceRegistryInjectable, ServiceTargetInjectable, SimpleNamedInjectable, StompEndpointBindingInjectable, TransactionManagerInjectable, XaConnectionFactoryInjectable

public interface Injectable

Injectable item which translates to an acceptable MSC ServiceName.

Author:
Bob McWhirter
See Also:
InjectableHandler, ServiceName

Method Summary
 String getKey()
          Retrieve the lookup key for this injectable.
 String getName()
          Retrieve the specific name of this injectable.
 org.jboss.msc.service.ServiceName getServiceName(org.jboss.msc.service.ServiceTarget serviceTarget, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
          Retrieve the MSC ServiceName of the actual underlying injectable asset.
 String getType()
          Retrieve the type of the injectable, typically related-to, if not identical-to, the originating InjectableHandler's type.
 boolean isGeneric()
           
 boolean isOptional()
           
 

Method Detail

getType

String getType()
Retrieve the type of the injectable, typically related-to, if not identical-to, the originating InjectableHandler's type.

Returns:

getName

String getName()
Retrieve the specific name of this injectable.

Returns:
The name.

getKey

String getKey()
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.

Returns:
The key used to index this injectable in the Ruby interpreter.

isGeneric

boolean isGeneric()

isOptional

boolean isOptional()

getServiceName

org.jboss.msc.service.ServiceName getServiceName(org.jboss.msc.service.ServiceTarget serviceTarget,
                                                 org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
                                                 throws Exception
Retrieve the MSC ServiceName of the actual underlying injectable asset.

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

TorqueBox 3.1.2

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