412 } |
412 } |
413 } |
413 } |
414 |
414 |
415 protected GuardedInvocationComponent getGuardedInvocationComponent(final ComponentLinkRequest req) |
415 protected GuardedInvocationComponent getGuardedInvocationComponent(final ComponentLinkRequest req) |
416 throws Exception { |
416 throws Exception { |
417 if (!req.namespaces.isEmpty()) { |
417 if (req.namespaces.isEmpty()) { |
418 final Namespace ns = req.namespaces.get(0); |
418 return null; |
419 final Operation op = req.baseOperation; |
419 } |
420 if (op == StandardOperation.GET) { |
420 final Namespace ns = req.namespaces.get(0); |
421 if (ns == StandardNamespace.PROPERTY) { |
421 final Operation op = req.baseOperation; |
422 return getPropertyGetter(req.popNamespace()); |
422 if (op == StandardOperation.GET) { |
423 } else if (ns == StandardNamespace.METHOD) { |
423 if (ns == StandardNamespace.PROPERTY) { |
424 return getMethodGetter(req.popNamespace()); |
424 return getPropertyGetter(req.popNamespace()); |
425 } |
425 } else if (ns == StandardNamespace.METHOD) { |
426 } else if (op == StandardOperation.SET && ns == StandardNamespace.PROPERTY) { |
426 return getMethodGetter(req.popNamespace()); |
427 return getPropertySetter(req.popNamespace()); |
427 } |
428 } |
428 } else if (op == StandardOperation.SET && ns == StandardNamespace.PROPERTY) { |
429 } |
429 return getPropertySetter(req.popNamespace()); |
430 return null; |
430 } |
|
431 return getNextComponent(req.popNamespace()); |
431 } |
432 } |
432 |
433 |
433 GuardedInvocationComponent getNextComponent(final ComponentLinkRequest req) throws Exception { |
434 GuardedInvocationComponent getNextComponent(final ComponentLinkRequest req) throws Exception { |
434 if (req.namespaces.isEmpty()) { |
435 if (req.namespaces.isEmpty()) { |
435 return createNoSuchMemberHandler(req.missingMemberHandlerFactory, |
436 return createNoSuchMemberHandler(req.missingMemberHandlerFactory, |