de.smartics.properties.integration.cdi.extension
Class ConfigurationPropertiesCdiBean

Package class diagram package ConfigurationPropertiesCdiBean
java.lang.Object
  extended by de.smartics.properties.integration.cdi.extension.ConfigurationPropertiesCdiBean
All Implemented Interfaces:
Serializable, javax.enterprise.context.spi.Contextual< Object>, javax.enterprise.inject.spi.Bean< Object>

public class ConfigurationPropertiesCdiBean
     
     
extends Object
implements javax.enterprise.inject.spi.Bean< Object>, Serializable

Cdi Bean implementation for the property descriptor types.

See Also:
Serialized Form

Constructor Summary
ConfigurationPropertiesCdiBean(Class<?> type, javax.enterprise.inject.spi.BeanManager beanManager, de.smartics.properties.api.config.app.ConfigurationPropertiesFactory factory, boolean useOnlyStaticKeyParts)
          Constructor.
 
Method Summary
 Object create(javax.enterprise.context.spi.CreationalContext<Object> ctx)
           
 void destroy(Object instance, javax.enterprise.context.spi.CreationalContext<Object> ctx)
           
 Class<?> getBeanClass()
           
 Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
           
 String getName()
           
 Set<Annotation> getQualifiers()
           
 Class<? extends Annotation> getScope()
           
 Set<Class<? extends Annotation>> getStereotypes()
           
 Set<Type> getTypes()
           
 boolean isAlternative()
           
 boolean isNullable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationPropertiesCdiBean

public ConfigurationPropertiesCdiBean(Class<?> type,
                                      javax.enterprise.inject.spi.BeanManager beanManager,
                                      de.smartics.properties.api.config.app.ConfigurationPropertiesFactory factory,
                                      boolean useOnlyStaticKeyParts)
Constructor.

Parameters:
type - the type which shall be constructed.
beanManager - the cdi bean manager.
factory - the factory to construct configurationProperties or managements.
useOnlyStaticKeyParts - trigger to use only the static key parts of aa key.
Method Detail

getBeanClass

public Class<?> getBeanClass()
Specified by:
getBeanClass in interface javax.enterprise.inject.spi.Bean<Object>

getInjectionPoints

public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
Specified by:
getInjectionPoints in interface javax.enterprise.inject.spi.Bean<Object>

getName

public String getName()
Specified by:
getName in interface javax.enterprise.inject.spi.Bean<Object>

getQualifiers

public Set<Annotation> getQualifiers()
Specified by:
getQualifiers in interface javax.enterprise.inject.spi.Bean<Object>

getScope

public Class<? extends Annotation> getScope()
Specified by:
getScope in interface javax.enterprise.inject.spi.Bean<Object>

getStereotypes

public Set<Class<? extends Annotation>> getStereotypes()
Specified by:
getStereotypes in interface javax.enterprise.inject.spi.Bean<Object>

getTypes

public Set<Type> getTypes()
Specified by:
getTypes in interface javax.enterprise.inject.spi.Bean<Object>

isAlternative

public boolean isAlternative()
Specified by:
isAlternative in interface javax.enterprise.inject.spi.Bean<Object>

isNullable

public boolean isNullable()
Specified by:
isNullable in interface javax.enterprise.inject.spi.Bean<Object>

create

public Object create(javax.enterprise.context.spi.CreationalContext<Object> ctx)
Specified by:
create in interface javax.enterprise.context.spi.Contextual<Object>

destroy

public void destroy(Object instance,
                    javax.enterprise.context.spi.CreationalContext<Object> ctx)
Specified by:
destroy in interface javax.enterprise.context.spi.Contextual<Object>


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.