Object[] ctorArgs = { toBeWrapped };
this.store = (TransactionalMapWrapper)ctor.newInstance(ctorArgs);
}
catch (NoSuchMethodException ee) {
error("Initialization error: ", ee);
throw new ServiceInitializationFailedException(this, ee);
}
}
}
catch (ClassNotFoundException e) {
error("Initialization error: ", e);
throw new ServiceInitializationFailedException(this, e);
}
catch (InstantiationException e) {
error("Initialization error: ", e);
throw new ServiceInitializationFailedException(this, e);
}
catch (IllegalAccessException e) {
error("Initialization error: ", e);
throw new ServiceInitializationFailedException(this, e);
}
catch (InvocationTargetException e) {
error("Initialization error: ", e);
throw new ServiceInitializationFailedException(this, e);
}
catch (ClassCastException e) {
error("Initialization error: ", e);
throw new ServiceInitializationFailedException(this,
"class in parameter '" + MAP_IMPL_PARAMETER + "' must " +
"be derived from TransactionalMapWrapper");
}
this.xaResource = new MapXAResource(this.store);