예제 #1
0
 /**
  * @see org.seasar.framework.container.S2Container#injectDependency(java.lang.Object,
  *     java.lang.String)
  */
 public void injectDependency(Object outerComponent, String componentName) {
   assertParameterIsNotNull(outerComponent, "outerComponent");
   assertParameterIsNotEmpty(componentName, "componentName");
   ComponentDef cd = S2ContainerBehavior.acquireFromInjectDependency(this, componentName);
   if (cd != null) {
     cd.injectDependency(outerComponent);
   }
 }
예제 #2
0
 /**
  * @see org.seasar.framework.container.S2Container#injectDependency(java.lang.Object,
  *     java.lang.Class)
  */
 public void injectDependency(Object outerComponent, Class componentClass) {
   assertParameterIsNotNull(outerComponent, "outerComponent");
   assertParameterIsNotNull(componentClass, "componentClass");
   ComponentDef cd = S2ContainerBehavior.acquireFromInjectDependency(this, componentClass);
   if (cd != null) {
     cd.injectDependency(outerComponent);
   }
 }