1 // SECTION-START[License Header] 2 // <editor-fold defaultstate="collapsed" desc=" Generated License "> 3 /* 4 * Java Object Management and Configuration 5 * Copyright (C) Christian Schulte, 2005-206 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 12 * o Redistributions of source code must retain the above copyright 13 * notice, this list of conditions and the following disclaimer. 14 * 15 * o Redistributions in binary form must reproduce the above copyright 16 * notice, this list of conditions and the following disclaimer in 17 * the documentation and/or other materials provided with the 18 * distribution. 19 * 20 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 21 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 22 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 23 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, 24 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * 31 * $JOMC: TestLocator.java 4588 2012-06-03 06:01:30Z schulte2005 $ 32 * 33 */ 34 // </editor-fold> 35 // SECTION-END 36 package org.jomc.ri.test.support; 37 38 import java.io.IOException; 39 import java.net.URI; 40 import org.jomc.ri.DefaultLocator; 41 42 // SECTION-START[Documentation] 43 // <editor-fold defaultstate="collapsed" desc=" Generated Documentation "> 44 /** 45 * Test {@code Locator} implementation. 46 * 47 * <dl> 48 * <dt><b>Identifier:</b></dt><dd>JOMC :: RI :: Tests :: Test Locator</dd> 49 * <dt><b>Name:</b></dt><dd>Test</dd> 50 * <dt><b>Specifications:</b></dt> 51 * <dd>org.jomc.spi.Locator @ 1.0</dd> 52 * <dt><b>Abstract:</b></dt><dd>No</dd> 53 * <dt><b>Final:</b></dt><dd>No</dd> 54 * <dt><b>Stateless:</b></dt><dd>No</dd> 55 * </dl> 56 * 57 * @author <a href="mailto:schulte2005@users.sourceforge.net">Christian Schulte</a> 1.0 58 * @version 1.3 59 */ 60 // </editor-fold> 61 // SECTION-END 62 // SECTION-START[Annotations] 63 // <editor-fold defaultstate="collapsed" desc=" Generated Annotations "> 64 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 65 // </editor-fold> 66 // SECTION-END 67 public class TestLocator 68 extends DefaultLocator 69 implements 70 org.jomc.spi.Locator 71 { 72 // SECTION-START[Locator] 73 74 @Override 75 public <T> T getObject( final Class<T> specification, final URI location ) throws IOException 76 { 77 if ( specification == null ) 78 { 79 throw new NullPointerException( "specification" ); 80 } 81 if ( location == null ) 82 { 83 throw new NullPointerException( "location" ); 84 } 85 86 return null; 87 } 88 89 // SECTION-END 90 // SECTION-START[TestLocator] 91 // SECTION-END 92 // SECTION-START[Constructors] 93 // <editor-fold defaultstate="collapsed" desc=" Generated Constructors "> 94 /** Creates a new {@code TestLocator} instance. */ 95 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.3", comments = "See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3" ) 96 public TestLocator() 97 { 98 // SECTION-START[Default Constructor] 99 super(); 100 // SECTION-END 101 } 102 // </editor-fold> 103 // SECTION-END 104 // SECTION-START[Dependencies] 105 // SECTION-END 106 // SECTION-START[Properties] 107 // SECTION-END 108 // SECTION-START[Messages] 109 // SECTION-END 110 }