com.sun.enterprise.deployment
Interface InjectionCapable

All Known Subinterfaces:
EjbReference, EntityManagerFactoryReference, EntityManagerReference
All Known Implementing Classes:
ConnectorConfigProperty, EjbReferenceDescriptor, EntityManagerFactoryReferenceDescriptor, EntityManagerReferenceDescriptor, EnvironmentProperty, JmsDestinationReferenceDescriptor, MessageDestinationReferenceDescriptor, ResourceReferenceDescriptor, RoleReference, ServiceReferenceDescriptor

public interface InjectionCapable

InjectionCapable describes a type of J2EE component environment resource that is capable of being injected at runtime.

Author:
Kenneth Saks

Method Summary
 void addInjectionTarget(InjectionTarget target)
          Add a new injection target for this dependency
 java.lang.String getComponentEnvName()
          ComponentEnvName is the name of the corresponding java:comp/env entry for the object that is to be injected.
 java.util.Set<InjectionTarget> getInjectionTargets()
           
 java.lang.String getInjectResourceType()
          This is the class name of the type of resource that is to be injected.
 boolean isInjectable()
          True if a particular resource instance is injectable.
 void setInjectResourceType(java.lang.String resourceType)
           
 

Method Detail

isInjectable

boolean isInjectable()
True if a particular resource instance is injectable. All injectable resources are also exposed via their corresponding java:comp/env namespaces, but not all resources in java:comp/env are injectable. A resource is either field injectable or method injectable but never both.


getInjectionTargets

java.util.Set<InjectionTarget> getInjectionTargets()
Returns:
the set of injection targets for this resource dependency

addInjectionTarget

void addInjectionTarget(InjectionTarget target)
Add a new injection target for this dependency


getComponentEnvName

java.lang.String getComponentEnvName()
ComponentEnvName is the name of the corresponding java:comp/env entry for the object that is to be injected.


getInjectResourceType

java.lang.String getInjectResourceType()
This is the class name of the type of resource that is to be injected.


setInjectResourceType

void setInjectResourceType(java.lang.String resourceType)


Copyright © 2012 GlassFish Community. All Rights Reserved.