de.akquinet.jbosscc.needle.configuration
Class NeedleConfiguration

java.lang.Object
  extended by de.akquinet.jbosscc.needle.configuration.NeedleConfiguration

public final class NeedleConfiguration
extends Object

Loads an holds the configuration of needle. Needle configuration can be defined in needle.properties files anywhere in the classpath.


Method Summary
static Set<Class<Annotation>> getCustomInjectionAnnotations()
          Returns the configured custom Annotation classes for default mock injections.
static Set<Class<InjectionProvider<?>>> getCustomInjectionProviderClasses()
          Returns the configured custom InjectionProvider classes.
static String getDBOperationClassName()
          Returns the configured database operation class name.
static String getHibernateCfgFilename()
          Returns the name of the configured hibernate.cfg file
static String getJdbcDriver()
           
static String getJdbcPassword()
           
static String getJdbcUrl()
           
static String getJdbcUser()
           
static String getMockProviderClassName()
          Returns the configured mock provider class name
static String getPersistenceunitName()
          Returns the configured jpa persistence unit name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPersistenceunitName

public static String getPersistenceunitName()
Returns the configured jpa persistence unit name.

Returns:
jpa persistence unit name

getHibernateCfgFilename

public static String getHibernateCfgFilename()
Returns the name of the configured hibernate.cfg file

Returns:
name of hibernate.cfg file

getDBOperationClassName

public static String getDBOperationClassName()
Returns the configured database operation class name.

Returns:
database operation class name or null

getJdbcUrl

public static String getJdbcUrl()

getJdbcDriver

public static String getJdbcDriver()

getJdbcUser

public static String getJdbcUser()

getJdbcPassword

public static String getJdbcPassword()

getMockProviderClassName

public static String getMockProviderClassName()
Returns the configured mock provider class name

Returns:
mock provider class name or null

getCustomInjectionAnnotations

public static Set<Class<Annotation>> getCustomInjectionAnnotations()
Returns the configured custom Annotation classes for default mock injections.

Returns:
a Set of Annotation classes

getCustomInjectionProviderClasses

public static Set<Class<InjectionProvider<?>>> getCustomInjectionProviderClasses()
Returns the configured custom InjectionProvider classes.

Returns:
a Set of InjectionProvider classes


Copyright © 2013 akquinet AG. All Rights Reserved.