|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.servingxml.ioc.resources.IocContainerImpl
public class IocContainerImpl
The IocContainerImpl
instance holds a collection of resource
objects indexed by name.
Field Summary | |
---|---|
static java.lang.String |
RESOURCES_LOCATION
|
Constructor Summary | |
---|---|
IocContainerImpl(ComponentDictionary componentDictionary,
IocContainer parent)
|
|
IocContainerImpl(MutableNameTable nameTable,
ComponentDictionary componentDictionary,
javax.xml.transform.sax.SAXTransformerFactory transformerFactory)
|
Method Summary | |
---|---|
MutableNameTable |
getNameTable()
|
QnameContext |
getQnameContext()
|
javax.xml.transform.sax.SAXTransformerFactory |
getTransformerFactory()
|
java.lang.String[] |
getUris(java.lang.Class javaInterface)
|
void |
initialize(ConfigurationContext context,
MutableResourceTable resourceTable)
|
void |
initializeResources(ConfigurationContext context,
MutableResourceTable resourceTable)
|
protected void |
initInclude(AbstractConfigurationContext context,
MutableResourceTable resourceTable)
|
void |
load(java.net.URL resourcesUrl)
Deprecated. |
void |
loadResources(org.w3c.dom.Document resourcesDocument,
java.lang.String systemId,
Record parameters)
|
void |
loadResources(java.net.URL resourcesUrl,
Record parameters)
|
java.lang.Object |
lookupConfigurationComponent(java.lang.Class javaInterface)
Looks up the configuration resource associated with the specified java interface. |
java.lang.Object |
lookupServiceComponent(java.lang.Class javaInterface,
java.lang.String uri)
Looks up the service resource associated with the specified java interface and uri. |
void |
printDiagnostics(java.io.PrintStream ps)
|
void |
putUris(java.lang.Class javaInterface,
java.util.List<java.lang.String> uriList)
|
void |
registerConfigurationComponent(java.lang.Class javaInterface,
java.lang.Object value)
Registes a configuration component instance associated with the specified java interface. |
void |
registerServiceComponent(java.lang.Class javaInterface,
java.lang.String uri,
java.lang.Object value)
Registers a service component instance associated with the specified java interface and name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RESOURCES_LOCATION
Constructor Detail |
---|
public IocContainerImpl(MutableNameTable nameTable, ComponentDictionary componentDictionary, javax.xml.transform.sax.SAXTransformerFactory transformerFactory)
public IocContainerImpl(ComponentDictionary componentDictionary, IocContainer parent)
Method Detail |
---|
public MutableNameTable getNameTable()
getNameTable
in interface IocContainer
public java.lang.Object lookupServiceComponent(java.lang.Class javaInterface, java.lang.String uri)
IocContainer
lookupServiceComponent
in interface IocContainer
lookupServiceComponent
in interface ResourceTable
javaInterface
- the java interface that the component implements.uri
- the resource uri.
public java.lang.Object lookupConfigurationComponent(java.lang.Class javaInterface)
IocContainer
lookupConfigurationComponent
in interface IocContainer
lookupConfigurationComponent
in interface ResourceTable
javaInterface
- the java interface that the component implements.
public void registerServiceComponent(java.lang.Class javaInterface, java.lang.String uri, java.lang.Object value)
MutableIocContainer
registerServiceComponent
in interface MutableIocContainer
javaInterface
- the java interface that the component implements.uri
- the component instance urivalue
- a service component instance if found, null otherwise.public void registerConfigurationComponent(java.lang.Class javaInterface, java.lang.Object value)
MutableIocContainer
registerConfigurationComponent
in interface MutableIocContainer
javaInterface
- the java interface that the component implements.value
- a configuration component instance.public void printDiagnostics(java.io.PrintStream ps)
printDiagnostics
in interface IocContainer
@Deprecated public void load(java.net.URL resourcesUrl)
public void loadResources(java.net.URL resourcesUrl, Record parameters)
loadResources
in interface MutableIocContainer
public void loadResources(org.w3c.dom.Document resourcesDocument, java.lang.String systemId, Record parameters)
loadResources
in interface MutableIocContainer
public void initializeResources(ConfigurationContext context, MutableResourceTable resourceTable)
public void initialize(ConfigurationContext context, MutableResourceTable resourceTable)
protected void initInclude(AbstractConfigurationContext context, MutableResourceTable resourceTable)
public javax.xml.transform.sax.SAXTransformerFactory getTransformerFactory()
getTransformerFactory
in interface IocContainer
public java.lang.String[] getUris(java.lang.Class javaInterface)
getUris
in interface IocContainer
public void putUris(java.lang.Class javaInterface, java.util.List<java.lang.String> uriList)
putUris
in interface IocContainer
public QnameContext getQnameContext()
getQnameContext
in interface IocContainer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |