def_kind = org.omg.CORBA.DefinitionKind.dk_Exception;
containing_repository = ir;
defined_in = _defined_in;
if (defined_in == null)
{
throw new INTF_REPOS ("defined_in = null");
}
if (containing_repository == null)
{
throw new INTF_REPOS ("containing_repository = null");
}
try
{
String classId = c.getName();
myClass = c;
version( "1.0" );
if( classId.indexOf('.') > 0 )
{
name( classId.substring( classId.lastIndexOf('.')+1));
absolute_name =
org.omg.CORBA.ContainedHelper.narrow( defined_in ).absolute_name() + "::" + name;
}
else
{
name( classId );
absolute_name = "::" + name;
}
helperClass = this.loader.loadClass(classId + "Helper") ;
id( (String)helperClass.getDeclaredMethod("id", (Class[]) null).invoke( null, (Object[]) null ));
type =
TypeCodeUtil.getTypeCode(myClass, this.loader, null, classId, this.logger );
try
{
members = new org.omg.CORBA.StructMember[ type.member_count() ];
for( int i = 0; i < members.length; i++ )
{
members[i] = new org.omg.CORBA.StructMember( type.member_name(i),
type.member_type(i),
null );
}
}
catch( Exception e )
{
this.logger.error("Caught Exception", e);
}
if (this.logger.isDebugEnabled())
{
this.logger.debug("ExceptionDef: " + absolute_name);
}
}
catch ( Exception e )
{
this.logger.error("Caught Exception", e);
throw new INTF_REPOS( ErrorMsg.IR_Not_Implemented,
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
}