org.jvnet.hk2.component
Interface HabitatFactory


public interface HabitatFactory

Contract responsible for habitat creation.

Author:
Jeff Trent

Method Summary
 Habitat newHabitat()
          Create a new Habitat without a parent or name.
 Habitat newHabitat(Services parent, String name)
          Create a new Habitat optionally providing a parent Services as well as a name.
 

Method Detail

newHabitat

Habitat newHabitat()
                   throws ComponentException
Create a new Habitat without a parent or name.

Throws:
ComponentException

newHabitat

Habitat newHabitat(Services parent,
                   String name)
                   throws ComponentException
Create a new Habitat optionally providing a parent Services as well as a name.

Throws:
ComponentException


Copyright © 2011 Oracle Corporation. All Rights Reserved.