From 4501413d424e7471761645dd58b1a66a55dc9095 Mon Sep 17 00:00:00 2001 From: Bob Lee Date: Mon, 29 Jun 2009 17:29:57 +0000 Subject: Moved the word 'only'. Fixes issue 11. Added copyright headers. git-svn-id: https://atinject.googlecode.com/svn/trunk@13 3bc8319c-20ab-11de-9edc-3f40a397ab60 --- src/javax/inject/Inject.java | 16 ++++++++++++++++ src/javax/inject/Named.java | 16 ++++++++++++++++ src/javax/inject/Provider.java | 16 ++++++++++++++++ src/javax/inject/Qualifier.java | 20 ++++++++++++++++++-- src/javax/inject/Scope.java | 18 +++++++++++++++++- src/javax/inject/Singleton.java | 16 ++++++++++++++++ src/javax/inject/package-info.java | 17 +++++++++++++++-- 7 files changed, 114 insertions(+), 5 deletions(-) diff --git a/src/javax/inject/Inject.java b/src/javax/inject/Inject.java index 88a3266..7880369 100644 --- a/src/javax/inject/Inject.java +++ b/src/javax/inject/Inject.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2009 The JSR-330 Expert Group + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package javax.inject; import java.lang.annotation.Target; diff --git a/src/javax/inject/Named.java b/src/javax/inject/Named.java index 554532f..d965a87 100644 --- a/src/javax/inject/Named.java +++ b/src/javax/inject/Named.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2009 The JSR-330 Expert Group + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package javax.inject; import java.lang.annotation.Retention; diff --git a/src/javax/inject/Provider.java b/src/javax/inject/Provider.java index ffc0878..271c373 100644 --- a/src/javax/inject/Provider.java +++ b/src/javax/inject/Provider.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2009 The JSR-330 Expert Group + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package javax.inject; /** diff --git a/src/javax/inject/Qualifier.java b/src/javax/inject/Qualifier.java index 8ec8e4e..6b4c42d 100644 --- a/src/javax/inject/Qualifier.java +++ b/src/javax/inject/Qualifier.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2009 The JSR-330 Expert Group + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package javax.inject; import java.lang.annotation.Target; @@ -18,8 +34,8 @@ import static java.lang.annotation.ElementType.ANNOTATION_TYPE; * unlike implementation types which needn't be part of the public * API. *
  • may have restricted usage if annotated with {@code @Target}. While - * this specification only covers applying qualifiers to fields and - * parameters, some injector configurations might use qualifier + * this specification covers applying qualifiers to fields and + * parameters only, some injector configurations might use qualifier * annotations in other places (on methods or classes for example).
  • * * diff --git a/src/javax/inject/Scope.java b/src/javax/inject/Scope.java index 51a199d..27133f1 100644 --- a/src/javax/inject/Scope.java +++ b/src/javax/inject/Scope.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2009 The JSR-330 Expert Group + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package javax.inject; import java.lang.annotation.Target; @@ -37,7 +53,7 @@ import static java.lang.annotation.ElementType.ANNOTATION_TYPE; *
  • is typically not {@code @Inherited}, so scoping is orthogonal to * implementation inheritance.
  • *
  • may have restricted usage if annotated with {@code @Target}. While - * this specification only covers applying scopes to classes, some + * this specification covers applying scopes to classes only, some * injector configurations might use scope annotations * in other places (on factory method results for example).
  • * diff --git a/src/javax/inject/Singleton.java b/src/javax/inject/Singleton.java index bb83f0d..a2af7b9 100644 --- a/src/javax/inject/Singleton.java +++ b/src/javax/inject/Singleton.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2009 The JSR-330 Expert Group + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package javax.inject; import java.lang.annotation.Documented; diff --git a/src/javax/inject/package-info.java b/src/javax/inject/package-info.java index 77ea903..7228c63 100644 --- a/src/javax/inject/package-info.java +++ b/src/javax/inject/package-info.java @@ -1,5 +1,18 @@ -// TODO: When generating Javadocs, include: -// -header "This is a DRAFT specification." +/* + * Copyright (C) 2009 The JSR-330 Expert Group + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ /** * Provides annotations for dependency injection. Enables portable objects -- cgit v1.2.3