}
def_kind = org.omg.CORBA.DefinitionKind.dk_Module;
if (ir == null)
{
throw new INTF_REPOS ("No repository!");
}
containing_repository = ir;
defined_in = def_in;
try
{
id( RepositoryID.toRepositoryID( full_name, false, loader ));
if( full_name.indexOf( fileSeparator ) > 0 )
{
name( full_name.substring( full_name.lastIndexOf( fileSeparator ) + 1 ));
if( defined_in instanceof org.omg.CORBA.Contained)
{
absolute_name =
((org.omg.CORBA.Contained)defined_in).absolute_name() +
"::" + name();
if (this.logger.isDebugEnabled())
{
this.logger.debug("New ModuleDef 1a) name " +
name() + " absolute: " +
absolute_name);
}
}
else
{
absolute_name = "::" + name();
if (this.logger.isDebugEnabled())
{
this.logger.debug("New ModuleDef 1b) name " +
name() + " absolute: " +
absolute_name + " defined_in : " +
defined_in.getClass().getName());
}
}
}
else
{
defined_in = containing_repository;
name( full_name );
absolute_name = "::" + name();
if (this.logger.isDebugEnabled())
{
this.logger.debug("New ModuleDef 2) name " +
name() +
" absolute:" + absolute_name);
}
}
delegate = new Container( this, path, full_name, loader, poa, this.logger );
}
catch ( Exception e )
{
this.logger.error("Caught Exception", e);
throw new INTF_REPOS( ErrorMsg.IR_Not_Implemented,
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
}