Klasse SimpleBeanProvider
java.lang.Object
net.sf.jguiraffe.di.impl.providers.SimpleBeanProvider
- Alle implementierten Schnittstellen:
BeanProvider
- Bekannte direkte Unterklassen:
CollectionBeanProvider
,ConstantBeanProvider
,ConstructorBeanProvider
,MapBeanProvider
,MethodInvocationBeanProvider
A base class for simple bean providers.
A simple BeanProvider
is a bean provider that only
cares for creating new bean instances. It does not have further support for
life-cycle features. Bean providers of this type are intended to collaborate
with a life-cycle-aware bean provider. This provider uses the simple bean
provider just for the creation and implements specific initialization
functionality.
This base class provides implementations for some of the methods defined in
the
interface. Especially dummy
implementations for the locking methods are available, which are typically
not needed by simple providers.
BeanProvider
- Version:
- $Id: SimpleBeanProvider.java 205 2012-01-29 18:29:57Z oheger $
- Autor:
- Oliver Heger
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the dependencies for this bean provider.Returns the lock ID of the current transaction.boolean
Returns a flag whether the managed bean is available.void
Sets the lock ID of the current transaction.void
shutdown
(DependencyProvider depProvider) Shuts down thisBeanProvider
.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden net.sf.jguiraffe.di.BeanProvider
getBean, getBeanClass
-
Konstruktordetails
-
SimpleBeanProvider
public SimpleBeanProvider()
-
-
Methodendetails
-
getDependencies
Returns the dependencies for this bean provider. This implementation simply returns null. Simple providers often do not have any dependencies.- Angegeben von:
getDependencies
in SchnittstelleBeanProvider
- Gibt zurück:
- a set with the dependencies of this bean provider
- Siehe auch:
-
getLockID
Returns the lock ID of the current transaction. Simple bean providers do not require any lock handling. So this implementation always returns null.- Angegeben von:
getLockID
in SchnittstelleBeanProvider
- Gibt zurück:
- the lock ID of the current transaction
-
setLockID
Sets the lock ID of the current transaction. This is just a dummy implementation; simple bean providers do not need any lock handling.- Angegeben von:
setLockID
in SchnittstelleBeanProvider
- Parameter:
lid
- the lock ID of the current transaction- Siehe auch:
-
isBeanAvailable
public boolean isBeanAvailable()Returns a flag whether the managed bean is available. For simple bean providers this is always the case, so this implementation always returns true.- Angegeben von:
isBeanAvailable
in SchnittstelleBeanProvider
- Gibt zurück:
- a flag whether the managed bean is available
-
shutdown
Shuts down thisBeanProvider
. This implementation is just an empty dummy; a simple bean provider does not need any special shutdown handling.- Angegeben von:
shutdown
in SchnittstelleBeanProvider
- Parameter:
depProvider
- theDependencyProvider
-