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