| 1 | // Copyright 2004-2007 Jean-Francois Poilpret |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | package net.sourceforge.hiveutils.service.impl; |
| 16 | |
| 17 | import org.apache.hivemind.Locatable; |
| 18 | import org.apache.hivemind.Location; |
| 19 | import org.apache.hivemind.internal.Module; |
| 20 | |
| 21 | /** |
| 22 | * Bean used to store location and module information about a translated |
| 23 | * "deferred-object". |
| 24 | * @author Jean-Francois Poilpret |
| 25 | */ |
| 26 | public class InjectObjectInformation implements Locatable |
| 27 | { |
| 28 | public InjectObjectInformation(Module module, Class type, String object, Location location) |
| 29 | { |
| 30 | _module = module; |
| 31 | _type = type; |
| 32 | _object = object; |
| 33 | _location = location; |
| 34 | } |
| 35 | |
| 36 | public Module getModule() |
| 37 | { |
| 38 | return _module; |
| 39 | } |
| 40 | |
| 41 | public Class getType() |
| 42 | { |
| 43 | return _type; |
| 44 | } |
| 45 | |
| 46 | public String getObject() |
| 47 | { |
| 48 | return _object; |
| 49 | } |
| 50 | |
| 51 | public Location getLocation() |
| 52 | { |
| 53 | return _location; |
| 54 | } |
| 55 | |
| 56 | final private Module _module; |
| 57 | final private Class _type; |
| 58 | final private String _object; |
| 59 | final private Location _location; |
| 60 | } |