de.smartics.properties.config.transfer.templatestream
Class JBoss7NamingFactory

Package class diagram package JBoss7NamingFactory
java.lang.Object
  extended by de.smartics.properties.config.transfer.templatestream.Factory
      extended by de.smartics.properties.config.transfer.templatestream.JBoss7NamingFactory
All Implemented Interfaces:
de.smartics.properties.api.config.transfer.PropertySinkFactory< StreamPropertySink>

public class JBoss7NamingFactory
     
     
extends Factory

Creates instances of StreamPropertySink by providing a template to generate an XML document for adding properties to an JNDI context.


Field Summary
static String DEFAULT_JNDI_PREFIX
          The default JNDI prefix to store properties.
 
Constructor Summary
JBoss7NamingFactory()
          Default constructor.
 
Method Summary
 StreamPropertySink create()
          
 String getJndiPrefix()
          Returns the prefix to the JNDI context to store properties.
 void setJndiPrefix(String jndiPrefix)
          Sets the prefix to the JNDI context to store properties.
 
Methods inherited from class de.smartics.properties.config.transfer.templatestream.Factory
getEncoding, setConfigColumn, setDocumentExtro, setDocumentIntro, setEncoding, setEscaper, setEscaperType, setFile, setLineExtro, setLineIntro, setNameColumn, setStream, setTable, setTemplate, setValueColumn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_JNDI_PREFIX

public static final String DEFAULT_JNDI_PREFIX
The default JNDI prefix to store properties.

The value of this constant is "java:/smartics-properties/config".

Constant Field Value:
"java:/smartics-properties/config"
Constructor Detail

JBoss7NamingFactory

public JBoss7NamingFactory()
Default constructor.

Method Detail

getJndiPrefix

public String getJndiPrefix()
Returns the prefix to the JNDI context to store properties.

Returns:
the prefix to the JNDI context to store properties.

setJndiPrefix

public void setJndiPrefix(String jndiPrefix)
Sets the prefix to the JNDI context to store properties.

Parameters:
jndiPrefix - the prefix to the JNDI context to store properties.

create

public StreamPropertySink create()
                          throws IllegalStateException

Specified by:
create in interface de.smartics.properties.api.config.transfer.PropertySinkFactory<StreamPropertySink>
Overrides:
create in class Factory
Throws:
IllegalStateException - on any problem opening the stream.


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