Guest User

CoreConfigSource

a guest
May 10th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1.  
  2. import org.apache.deltaspike.core.spi.activation.ClassDeactivator;
  3. import org.apache.deltaspike.core.spi.config.ConfigSource;
  4.  
  5. public class CoreConfigSource implements ConfigSource{
  6.  
  7.     @Override
  8.     public int getOrdinal() {
  9.         return 0;
  10.     }
  11.  
  12.     @Override
  13.     public String getPropertyValue(String key) {
  14.         if(ClassDeactivator.class.getName().equals(key)) {
  15.             return CoreClassDeactivator.class.getName();
  16.         }
  17.        
  18.         return null;
  19.     }
  20.  
  21.     @Override
  22.     public String getConfigName() {
  23.         return null;
  24.     }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment