Package org.jspresso.framework.model.component.service

Examples of org.jspresso.framework.model.component.service.IComponentService


   * {@inheritDoc}
   */
  @Override
  public IComponentService getServiceDelegate(Method targetMethod) {
    registerDelegateServicesIfNecessary();
    IComponentService service = null;
    if (serviceDelegates != null) {
      service = serviceDelegates.get(targetMethod.getName());
    }
    if (service == null && getAncestorDescriptors() != null) {
      for (Iterator<IComponentDescriptor<?>> ite = getAncestorDescriptors()
View Full Code Here


  private synchronized void registerDelegateServicesIfNecessary() {
    if (serviceDelegateClassNames != null) {
      for (Entry<String, String> nextPair : serviceDelegateClassNames
          .entrySet()) {
        try {
          IComponentService delegate = null;
          if (!("".equals(nextPair.getValue()) || "null"
              .equalsIgnoreCase(nextPair.getValue()))) {
            delegate = (IComponentService) Class.forName(nextPair.getValue())
                .newInstance();
          }
View Full Code Here

   * @throws NoSuchMethodException
   *           if no mean could be found to service the method.
   */
  protected Object invokeServiceMethod(Object proxy, Method method,
      Object[] args) throws NoSuchMethodException {
    IComponentService service = componentDescriptor.getServiceDelegate(method);
    if (service != null) {
      int signatureSize = method.getParameterTypes().length + 1;
      Class<?>[] parameterTypes = new Class[signatureSize];
      Object[] parameters = new Object[signatureSize];

View Full Code Here

TOP

Related Classes of org.jspresso.framework.model.component.service.IComponentService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.