Examples of ObjectCreationException


Examples of org.apache.tuscany.sca.core.factory.ObjectCreationException

                    throw new ResourceNotFoundException("Resource not found: " + mappedName);
                }
            }
            return resource;
        } catch (ResourceResolutionException e) {
            throw new ObjectCreationException(e);
        }

    }
View Full Code Here

Examples of org.apache.tuscany.sca.core.factory.ObjectCreationException

            if (proxy == null) {
                proxy = createProxy();
            }
            return businessInterface.cast(proxy);
        } catch (Exception e) {
            throw new ObjectCreationException(e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.core.factory.ObjectCreationException

        public T getInstance() throws ObjectCreationException {
            try {
                return (T)scopeContainer.getWrapper(null).getInstance();
            } catch (TargetResolutionException e) {
                throw new ObjectCreationException(e);
            }
        }
View Full Code Here

Examples of org.apache.tuscany.sca.core.factory.ObjectCreationException

        public T getInstance() throws ObjectCreationException {
            try {
                return (T)scopeContainer.getWrapper(null).getInstance();
            } catch (TargetResolutionException e) {
                throw new ObjectCreationException(e);
            }
        }
View Full Code Here

Examples of org.apache.tuscany.sca.core.factory.ObjectCreationException

                        }
                    }
                }

        } catch (Exception e) {
            throw new ObjectCreationException(e);
        } finally {
            exitMethod(startBundleEntryCount);
        }
        return osgiBundle;
    }
View Full Code Here

Examples of org.apache.tuscany.sca.core.factory.ObjectCreationException

            }

            return osgiServiceReference;

        } catch (Exception e) {
            throw new ObjectCreationException(e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.factory.ObjectCreationException

    @SuppressWarnings("unchecked")
    public T getInstance() throws ObjectCreationException {
        try {
            return (T) context.lookup(name);
        } catch (NamingException e) {
            throw new ObjectCreationException(e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.spi.ObjectCreationException

        try {
            method.invoke(instance, objectFactory.getInstance());
        } catch (IllegalAccessException e) {
            throw new AssertionError("Method is not accessible [" + method + "]");
        } catch (IllegalArgumentException e) {
            ObjectCreationException oce = new ObjectCreationException("Exception thrown by setter", e);
            oce.setIdentifier(method.getName());
            throw oce;
        } catch (InvocationTargetException e) {
            ObjectCreationException oce = new ObjectCreationException("Exception thrown by setter", e);
            oce.setIdentifier(method.getName());
            throw oce;
        }
    }
View Full Code Here

Examples of org.apache.wink.common.internal.lifecycle.ObjectCreationException

        public void injectMembers(T instance) {
            try {
                CreationUtils.injectFields(instance, classMetaData, RuntimeContextTLS.getRuntimeContext());
            } catch (IOException e) {
                logger.error(Messages.getMessage("injectionFailureSingleton"), instance.getClass());
                throw new ObjectCreationException(e);
            } catch (PrivilegedActionException e) {
                logger.error(Messages.getMessage("injectionFailureSingleton"), instance.getClass());
                throw new ObjectCreationException(e);
            }
        }
View Full Code Here

Examples of org.apache.wink.common.internal.lifecycle.ObjectCreationException

        } catch (InvocationTargetException e) {
            Throwable targetException = e.getTargetException();
            if (targetException instanceof RuntimeException) {
                throw (RuntimeException)targetException;
            }
            throw new ObjectCreationException(targetException);
        } catch (Exception e) {
            throw new ObjectCreationException(e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.