Interface Injectable
- All Known Implementing Classes:
ContextEjb,ContextEnvironment,ContextHandler,ContextLocalEjb,ContextResource,ContextResourceEnvRef,ContextResourceLink,ContextService,MessageDestination,MessageDestinationRef,ResourceBase
public interface Injectable
Interface for objects that can be injected with dependencies.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddInjectionTarget(String injectionTargetName, String jndiName) Adds an injection target to this injectable.Returns the list of injection targets.getName()Returns the name of this injectable.
-
Method Details
-
getName
String getName()Returns the name of this injectable.- Returns:
- the name
-
addInjectionTarget
Adds an injection target to this injectable.- Parameters:
injectionTargetName- the name of the injection targetjndiName- the JNDI name for the injection
-
getInjectionTargets
List<InjectionTarget> getInjectionTargets()Returns the list of injection targets.- Returns:
- the list of injection targets
-