func NewStaticDirectory(invokers []protocol.Invoker) *staticDirectory {
	var url *common.URL

	if len(invokers) > 0 {
		url = invokers[0].GetUrl()
	}
	dir := &staticDirectory{
		BaseDirectory: NewBaseDirectory(url),
		invokers:      invokers,
	}

	return dir
}
// NewStaticDirectory Create a new staticDirectory with invokers
NewStaticDirectory Create a new staticDirectory with invokers
// NewStaticDirectory Create a new staticDirectory with invokers
func NewStaticDirectory(invokers []protocol.Invoker) *staticDirectory {
	var url *common.URL
	if len(invokers) > 0 {
		url = invokers[0].GetUrl()
	}
	dir := &staticDirectory{
		BaseDirectory: NewBaseDirectory(url),
		invokers:      invokers,
	}
	return dir
}
func NewStaticDirectory ( invokers [ ] protocol . Invoker ) * staticDirectory { var url * common . URL if len ( invokers ) > 0 { url = invokers [ 0 ] . GetUrl ( ) } dir := & staticDirectory { BaseDirectory : NewBaseDirectory ( url ) , invokers : invokers , } return dir }
NewStaticDirectory Create a new staticDirectory with invokers
NewStaticDirectory Create a new staticDirectory with invokers