public ObjectName preRegister(MBeanServer server,ObjectName name) throws Exception {
  setMBeanServer(server);
  if (name == null) {
    name=new ObjectName(server.getDefaultDomain() + ":" + ServiceName.MLET);
  }
  this.mletObjectName=name;
  return this.mletObjectName;
}

public ObjectName preRegister ( MBeanServer server , ObjectName name ) throws Exception { setMBeanServer ( server ) ; if ( name == null ) { name = new ObjectName ( server . getDefaultDomain ( ) + ":" + ServiceName . MLET ) ; } this . mletObjectName = name ; return this . mletObjectName ; }
allows the m - let to perform any operations it needs before being registered in the mbean server . if the objectname is null , the m - let provides a default name for its registration & lt ; defaultdomain & gt ; : type = mlet
