Package org.codehaus.aspectwerkz.exception

Examples of org.codehaus.aspectwerkz.exception.WrappedRuntimeException


            final AspectContainer container = createAspectContainer(crossCuttingInfoPrototype);
            crossCuttingInfoPrototype.setContainer(container);
            PointcutManager pointcutManager = new PointcutManager(aspectDef.getName(), deploymentModel);
            aspectManager.register(container, pointcutManager);
        } catch (Exception e) {
            throw new WrappedRuntimeException(e);
        }
    }
View Full Code Here


        Class aspectClass;
        try {
            aspectClass = loader.loadClass(aspectClassName);
        } catch (Exception e) {
            e.printStackTrace();
            throw new WrappedRuntimeException(e);
        }
        return aspectClass;
    }
View Full Code Here

            if (classInfo == null) {
                classInfo = new AsmClassInfo(cw.toByteArray(), loader);
            }
            return classInfo;
        } catch (IOException e) {
            throw new WrappedRuntimeException(e);
        }
    }
View Full Code Here

            // create the method repository lazily
            if (!s_methods.containsKey(klass)) {
                createMethodRepository(klass);
            }
        } catch (Exception e) {
            throw new WrappedRuntimeException(e);
        }
        MethodTuple methodTuple;
        try {
            methodTuple = (MethodTuple) ((TIntObjectHashMap) s_methods.get(klass)).get(methodHash);
        } catch (Throwable e1) {
            throw new WrappedRuntimeException(e1);
        }
        return methodTuple;
    }
View Full Code Here

            // create the constructor repository lazily
            if (!s_constructors.containsKey(klass)) {
                createConstructorRepository(klass);
            }
        } catch (Exception e) {
            throw new WrappedRuntimeException(e);
        }
        ConstructorTuple constructorTuple;
        try {
            constructorTuple = (ConstructorTuple) ((TIntObjectHashMap) s_constructors.get(klass)).get(constructorHash);
        } catch (Throwable e1) {
            throw new WrappedRuntimeException(e1);
        }
        return constructorTuple;
    }
View Full Code Here

            // create the fields repository lazily
            if (!s_fields.containsKey(klass)) {
                createFieldRepository(klass);
            }
        } catch (Exception e) {
            throw new WrappedRuntimeException(e);
        }
        Field field;
        try {
            field = (Field) ((TIntObjectHashMap) s_fields.get(klass)).get(fieldHash);
        } catch (Throwable e1) {
            throw new WrappedRuntimeException(e1);
        }
        return field;
    }
View Full Code Here

                    } else {
                        return null;
                    }
                }
            } catch (Exception e) {
                throw new WrappedRuntimeException(e);
            }
        }
        return extractor;
    }
View Full Code Here

            try {
                extractor = new JavassistAttributeExtractor();
                extractor.initialize(ctClass);
                s_extractorCache.put(hash, extractor);
            } catch (Exception e) {
                throw new WrappedRuntimeException(e);
            }
        }
        return extractor;
    }
View Full Code Here

            if (annotation != null) {
                Class mixin;
                try {
                    mixin = klass.getClassLoader().loadClass(annotation.innerClassName());
                } catch (ClassNotFoundException e) {
                    throw new WrappedRuntimeException(e);
                }
                DefinitionParserHelper.createAndAddIntroductionDefToAspectDef(
                    mixin,
                    annotation.expression(),
                    annotation.deploymentModel(),
View Full Code Here

                try {
                    Class redefinerClass = ContextClassLoader.loadClass(HOTSWAP_REDEFINER_CLASS_NAME);
                    return (Redefiner) redefinerClass.newInstance();
                } catch (ClassNotFoundException e) {
                    // TODO this message will be wrong if Java 5 did not started a preMain
                    throw new WrappedRuntimeException(
                            "redefiner class [HotSwapRedefiner] could not be found on classpath, make sure you have the aspectwerkz extensions jar file in your classpath",
                            e
                    );
                } catch (Exception e) {
                    // TODO this message will be wrong upon Java 5..
                    throw new WrappedRuntimeException("redefiner class [HotSwapRedefiner] could not be instantiated", e);
                }
            }

        } else if (type.equals(Type.JVMTI)) {
            throw new UnsupportedOperationException("JVMTI is not supported yet");
View Full Code Here

TOP

Related Classes of org.codehaus.aspectwerkz.exception.WrappedRuntimeException

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.