org.jvnet.hk2.config
Class CagedConfiguredCreator<T>

java.lang.Object
  extended by com.sun.hk2.component.AbstractInhabitantImpl<T>
      extended by org.jvnet.hk2.config.CagedConfiguredCreator<T>
All Implemented Interfaces:
Holder<T>, Creator<T>, Inhabitant<T>

public class CagedConfiguredCreator<T>
extends AbstractInhabitantImpl<T>


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.hk2.component.Holder
Holder.Impl<T>
 
Constructor Summary
CagedConfiguredCreator(Creator core, Dom dom, CageBuilder builder)
           
 
Method Summary
 T create(Inhabitant onBehalfOf)
           
 T get(Inhabitant onBehalfOf)
           
 void initialize(T t, Inhabitant onBehalfOf)
           
 boolean isInstantiated()
           
 MultiMap<String,String> metadata()
           
 void release()
           
 Class<T> type()
           
 String typeName()
           
 
Methods inherited from class com.sun.hk2.component.AbstractInhabitantImpl
companions, get, getAnnotation, getAnnotation, getSerializedMetadata, getSerializedMetadata, lead, setCompanions, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jvnet.hk2.component.Creator
get
 
Methods inherited from interface org.jvnet.hk2.component.Inhabitant
companions, getSerializedMetadata, getSerializedMetadata, lead, setCompanions
 

Constructor Detail

CagedConfiguredCreator

public CagedConfiguredCreator(Creator core,
                              Dom dom,
                              CageBuilder builder)
Method Detail

initialize

public void initialize(T t,
                       Inhabitant onBehalfOf)
                throws ComponentException
Specified by:
initialize in interface Creator<T>
Throws:
ComponentException

isInstantiated

public boolean isInstantiated()
Specified by:
isInstantiated in interface Inhabitant<T>

typeName

public String typeName()
Specified by:
typeName in interface Inhabitant<T>

type

public Class<T> type()
Specified by:
type in interface Inhabitant<T>

get

public T get(Inhabitant onBehalfOf)
Specified by:
get in interface Inhabitant<T>

create

public T create(Inhabitant onBehalfOf)
         throws ComponentException
Specified by:
create in interface Creator<T>
Throws:
ComponentException

metadata

public MultiMap<String,String> metadata()
Specified by:
metadata in interface Inhabitant<T>

release

public void release()
Specified by:
release in interface Inhabitant<T>


Copyright © 2012 Oracle Corporation. All Rights Reserved.