O
- Object class used by clientsL
- Class looked uppublic abstract class ObjectFactoryBase<O,L> extends Object implements org.springframework.beans.factory.DisposableBean
Modifier and Type | Field and Description |
---|---|
protected org.apache.logging.log4j.Logger |
log |
protected Map<String,O> |
objects |
Constructor and Description |
---|
ObjectFactoryBase() |
Modifier and Type | Method and Description |
---|---|
O |
add(L object,
String jndiName)
Add and augment an Object to this factory so it can be used without the need of a JNDI lookup.
|
protected O |
augment(L object,
String objectName) |
void |
destroy() |
O |
get(String jndiName) |
O |
get(String jndiName,
Properties jndiEnvironment) |
protected abstract L |
lookup(String jndiName,
Properties jndiEnvironment)
Perform the actual lookup
|
protected abstract L lookup(String jndiName, Properties jndiEnvironment) throws NamingException
NamingException
protected O augment(L object, String objectName) throws NamingException
NamingException
public O get(String jndiName) throws NamingException
NamingException
public O get(String jndiName, Properties jndiEnvironment) throws NamingException
NamingException
public O add(L object, String jndiName)
Copyright © 2023 Frank!Framework. All rights reserved.