private void configureWithDependencies(AbstractBeanMetaData aspect)
{
aspect.addProperty(new AbstractPropertyMetaData("adviceBean", name));
AbstractInstallMetaData installAspect = new AbstractInstallMetaData();
installAspect.setBean(aspect.getName());
installAspect.setMethodName("install");
ArrayList<ParameterMetaData> parameters = new ArrayList<ParameterMetaData>();
parameters.add(new AbstractParameterMetaData(new ThisValueMetaData()));
installAspect.setParameters(parameters);
List<InstallMetaData> installs = getInstalls();
if (installs == null)
installs = new ArrayList<InstallMetaData>();
installs.add(installAspect);
setInstalls(installs);
AbstractInstallMetaData uninstallAspect = new AbstractInstallMetaData();
uninstallAspect.setBean(aspect.getName());
uninstallAspect.setMethodName("uninstall");
List<InstallMetaData> uninstalls = getUninstalls();
if (uninstalls == null)
uninstalls = new ArrayList<InstallMetaData>();
uninstalls.add(uninstallAspect);